aboutsummaryrefslogtreecommitdiff
path: root/src/framework/command.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-06-26 21:50:16 -0700
committerZeyla Hellyer <[email protected]>2017-06-26 21:50:16 -0700
commitaf1061b5e82ed1bf4e71ff3146cb98bc6cbb678c (patch)
tree6a33be2c9cea182a04b82273244c097bbfff33c9 /src/framework/command.rs
parentFix ModelError doctest (diff)
downloadserenity-af1061b5e82ed1bf4e71ff3146cb98bc6cbb678c.tar.xz
serenity-af1061b5e82ed1bf4e71ff3146cb98bc6cbb678c.zip
Prevent Direct Messaging other bot users
The API no longer allows bot users to Direct Message other bot users, so pre-emptively check that the recipient is not a bot. If it is, return a `ModelError::MessagingBot`.
Diffstat (limited to 'src/framework/command.rs')
0 files changed, 0 insertions, 0 deletions