diff options
| author | Adelyn <[email protected]> | 2018-07-10 05:59:07 -0700 |
|---|---|---|
| committer | Alex M. M <[email protected]> | 2018-07-10 14:59:07 +0200 |
| commit | ce8da793d3142cb001d9b155ff4224c15fe833ce (patch) | |
| tree | 4529edb40e42256db31809a400eb479983dafa9f /src/model/misc.rs | |
| parent | Fix ffmpeg_optioned doctest (diff) | |
| download | serenity-ce8da793d3142cb001d9b155ff4224c15fe833ce.tar.xz serenity-ce8da793d3142cb001d9b155ff4224c15fe833ce.zip | |
impl Mentionable for GuildChannel (#348)
Diffstat (limited to 'src/model/misc.rs')
| -rw-r--r-- | src/model/misc.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/misc.rs b/src/model/misc.rs index 5278f89..3eaea38 100644 --- a/src/model/misc.rs +++ b/src/model/misc.rs @@ -66,6 +66,10 @@ impl Mentionable for User { fn mention(&self) -> String { format!("<@{}>", self.id.0) } } +impl Mentionable for GuildChannel { + fn mention(&self) -> String { format!("<#{}>", self.id.0) } +} + #[cfg(all(feature = "model", feature = "utils"))] #[derive(Debug)] pub enum UserParseError { |