diff options
Diffstat (limited to 'src/model/channel.rs')
| -rw-r--r-- | src/model/channel.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/model/channel.rs b/src/model/channel.rs index 13f51b9..7036a1d 100644 --- a/src/model/channel.rs +++ b/src/model/channel.rs @@ -955,13 +955,6 @@ impl GuildChannel { CACHE.read().unwrap().get_guild(self.guild_id).cloned() } - /// Return a [`Mention`] which will link to this channel. - /// - /// [`Mention`]: struct.Mention.html - pub fn mention(&self) -> Mention { - self.id.mention() - } - /// Gets all channel's pins. #[cfg(feature = "methods")] pub fn pins(&self) -> Result<Vec<Message>> { @@ -1023,7 +1016,7 @@ impl GuildChannel { impl fmt::Display for GuildChannel { /// Formas the channel, creating a mention of it. fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - fmt::Display::fmt(&self.mention(), f) + fmt::Display::fmt(&self.id.mention(), f) } } |