aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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) }
}