diff options
| author | Zeyla Hellyer <[email protected]> | 2018-07-14 20:06:35 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-07-14 20:07:45 -0700 |
| commit | 8ce82346846f235357b8dc53cb3ff399e70fcb4a (patch) | |
| tree | 694d3706a23771a8dc4821f587ad276785e69f5c /src | |
| parent | Implement Mentionable for PrivateChannel (diff) | |
| download | serenity-8ce82346846f235357b8dc53cb3ff399e70fcb4a.tar.xz serenity-8ce82346846f235357b8dc53cb3ff399e70fcb4a.zip | |
Implement Mentionable for Group
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/misc.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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)) } } |