diff options
| author | Zeyla Hellyer <[email protected]> | 2017-06-26 21:50:16 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-06-26 21:50:16 -0700 |
| commit | af1061b5e82ed1bf4e71ff3146cb98bc6cbb678c (patch) | |
| tree | 6a33be2c9cea182a04b82273244c097bbfff33c9 /src/framework/command.rs | |
| parent | Fix ModelError doctest (diff) | |
| download | serenity-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