aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorMishio595 <[email protected]>2018-07-09 22:47:43 -0600
committerMishio595 <[email protected]>2018-07-09 22:47:43 -0600
commit65bcf33d59bdcc3e77c5542c6eb380eb73451184 (patch)
tree8f4b83d405c5a764e8e7039c32f5e906c940fe08 /src/model
parentMerge https://github.com/serenity-rs/serenity (diff)
downloadserenity-65bcf33d59bdcc3e77c5542c6eb380eb73451184.tar.xz
serenity-65bcf33d59bdcc3e77c5542c6eb380eb73451184.zip
impl Mentionable for GuildChannel
Diffstat (limited to 'src/model')
-rw-r--r--src/model/misc.rs4
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 {