From 8ce82346846f235357b8dc53cb3ff399e70fcb4a Mon Sep 17 00:00:00 2001 From: Zeyla Hellyer Date: Sat, 14 Jul 2018 20:06:35 -0700 Subject: Implement Mentionable for Group --- src/model/misc.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/model/misc.rs b/src/model/misc.rs index 4780bb6..d840c6f 100644 --- a/src/model/misc.rs +++ b/src/model/misc.rs @@ -52,6 +52,12 @@ impl Mentionable for Emoji { fn mention(&self) -> String { format!("<:{}:{}>", self.name, self.id.0) } } +impl Mentionable for Group { + fn mention(&self) -> String { + format!("<#{}", self.channel_id.0) + } +} + impl Mentionable for Member { fn mention(&self) -> String { format!("<@{}>", self.user.with(|u| u.id.0)) } } -- cgit v1.2.3