diff options
| author | Zeyla Hellyer <[email protected]> | 2018-07-14 20:04:58 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-07-14 20:07:45 -0700 |
| commit | d11d916a94b8a96fde218db4550d6c2428b4bc2a (patch) | |
| tree | 4de5e741010677216ecb301330acd2b1d2e51226 /src | |
| parent | Implement Mentionable for ChannelCategory (diff) | |
| download | serenity-d11d916a94b8a96fde218db4550d6c2428b4bc2a.tar.xz serenity-d11d916a94b8a96fde218db4550d6c2428b4bc2a.zip | |
Implement Mentionable for PrivateChannel
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 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) } } |