aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorAdelyn <[email protected]>2018-07-10 05:59:07 -0700
committerAlex M. M <[email protected]>2018-07-10 14:59:07 +0200
commitce8da793d3142cb001d9b155ff4224c15fe833ce (patch)
tree4529edb40e42256db31809a400eb479983dafa9f /src/model
parentFix ffmpeg_optioned doctest (diff)
downloadserenity-ce8da793d3142cb001d9b155ff4224c15fe833ce.tar.xz
serenity-ce8da793d3142cb001d9b155ff4224c15fe833ce.zip
impl Mentionable for GuildChannel (#348)
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 {