aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-07-14 20:04:58 -0700
committerZeyla Hellyer <[email protected]>2018-07-14 20:07:45 -0700
commitd11d916a94b8a96fde218db4550d6c2428b4bc2a (patch)
tree4de5e741010677216ecb301330acd2b1d2e51226 /src
parentImplement Mentionable for ChannelCategory (diff)
downloadserenity-d11d916a94b8a96fde218db4550d6c2428b4bc2a.tar.xz
serenity-d11d916a94b8a96fde218db4550d6c2428b4bc2a.zip
Implement Mentionable for PrivateChannel
Diffstat (limited to 'src')
-rw-r--r--src/model/misc.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/model/misc.rs b/src/model/misc.rs
index f27b10c..4780bb6 100644
--- a/src/model/misc.rs
+++ b/src/model/misc.rs
@@ -56,6 +56,12 @@ impl Mentionable for Member {
fn mention(&self) -> String { format!("<@{}>", self.user.with(|u| u.id.0)) }
}
+impl Mentionable for PrivateChannel {
+ fn mention(&self) -> String {
+ format!("<#{}>", self.id.0)
+ }
+}
+
impl Mentionable for RoleId {
fn mention(&self) -> String { format!("<@&{}>", self.0) }
}