aboutsummaryrefslogtreecommitdiff
path: root/src/model/misc.rs
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2017-09-09 10:53:44 +0200
committeracdenisSK <[email protected]>2017-09-09 10:56:29 +0200
commit4be6b9d5008ff8bb3d1fdddff5647a6bb307513c (patch)
tree516b811875ae4cb2b98c308aabb69bc6e7a94fd2 /src/model/misc.rs
parentChange order to avoid subtraction overflow error (#160) (diff)
downloadserenity-4be6b9d5008ff8bb3d1fdddff5647a6bb307513c.tar.xz
serenity-4be6b9d5008ff8bb3d1fdddff5647a6bb307513c.zip
Implement categories
Diffstat (limited to 'src/model/misc.rs')
-rw-r--r--src/model/misc.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/model/misc.rs b/src/model/misc.rs
index dce8491..d54a046 100644
--- a/src/model/misc.rs
+++ b/src/model/misc.rs
@@ -31,6 +31,7 @@ impl Mentionable for Channel {
Channel::Guild(ref x) => format!("<#{}>", x.with(|x| x.id.0)),
Channel::Private(ref x) => format!("<#{}>", x.with(|x| x.id.0)),
Channel::Group(ref x) => format!("<#{}>", x.with(|x| x.channel_id.0)),
+ Channel::Category(_) => panic!("Categories can't be mentioned"),
}
}
}