aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild/guild_id.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-08-04 17:32:57 +0200
committeracdenisSK <[email protected]>2017-08-04 17:32:57 +0200
commit878684f61fb48a25e117ed32548f78869cb027fc (patch)
tree32d331395f50e45feb3d03a2dda74206ece83c1c /src/model/guild/guild_id.rs
parentRemove uneccessary map (diff)
downloadserenity-878684f61fb48a25e117ed32548f78869cb027fc.tar.xz
serenity-878684f61fb48a25e117ed32548f78869cb027fc.zip
Deprecate `GuildId::as_channel_id` and add simulation methods for the "default channel" concept
Also fix a little mistake
Diffstat (limited to 'src/model/guild/guild_id.rs')
-rw-r--r--src/model/guild/guild_id.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/guild/guild_id.rs b/src/model/guild/guild_id.rs
index a199331..5bad3ab 100644
--- a/src/model/guild/guild_id.rs
+++ b/src/model/guild/guild_id.rs
@@ -15,6 +15,7 @@ use internal::prelude::*;
impl GuildId {
/// Converts the guild Id into the default channel's Id.
#[inline]
+ #[deprecated(note = "The concept of default channels is no more, use `Guild::default_channel{_guaranteed}` to simulate the concept.")]
pub fn as_channel_id(&self) -> ChannelId { ChannelId(self.0) }
/// Ban a [`User`] from the guild. All messages by the