diff options
| author | acdenisSK <[email protected]> | 2017-09-09 10:53:44 +0200 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2017-09-09 10:56:29 +0200 |
| commit | 4be6b9d5008ff8bb3d1fdddff5647a6bb307513c (patch) | |
| tree | 516b811875ae4cb2b98c308aabb69bc6e7a94fd2 /src/model/misc.rs | |
| parent | Change order to avoid subtraction overflow error (#160) (diff) | |
| download | serenity-4be6b9d5008ff8bb3d1fdddff5647a6bb307513c.tar.xz serenity-4be6b9d5008ff8bb3d1fdddff5647a6bb307513c.zip | |
Implement categories
Diffstat (limited to 'src/model/misc.rs')
| -rw-r--r-- | src/model/misc.rs | 1 |
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"), } } } |