diff options
| author | acdenisSK <[email protected]> | 2017-08-04 17:32:57 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-08-04 17:32:57 +0200 |
| commit | 878684f61fb48a25e117ed32548f78869cb027fc (patch) | |
| tree | 32d331395f50e45feb3d03a2dda74206ece83c1c /src/model/guild/guild_id.rs | |
| parent | Remove uneccessary map (diff) | |
| download | serenity-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.rs | 1 |
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 |