diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-21 17:29:10 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-21 17:29:10 -0700 |
| commit | 092f288fdd22ae39b019e61a6f12420b6ca3b67c (patch) | |
| tree | 6d8863cc859945457dc6c4b111017fa21ca8103f /src/model/channel/reaction.rs | |
| parent | Remove tokio usage (diff) | |
| download | serenity-092f288fdd22ae39b019e61a6f12420b6ca3b67c.tar.xz serenity-092f288fdd22ae39b019e61a6f12420b6ca3b67c.zip | |
Update bitflags, other dependencies
Bitflags changed its macro codegen from creating constants to associated
constants on structs.
Upgrade path:
Update code from:
```rust
use serenity::model::permissions::{ADD_REACTIONS, MANAGE_MESSAGES};
foo(vec![ADD_REACTIONS, MANAGE_MESSAGES]);
```
to:
```rust
use serenity::model::Permissions;
foo(vec![Permissions::ADD_REACTIONS, Permissions::MANAGE_MESSAGES]);
```
Diffstat (limited to 'src/model/channel/reaction.rs')
| -rw-r--r-- | src/model/channel/reaction.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/model/channel/reaction.rs b/src/model/channel/reaction.rs index 605ac7f..2420ba7 100644 --- a/src/model/channel/reaction.rs +++ b/src/model/channel/reaction.rs @@ -61,7 +61,7 @@ impl Reaction { // // * The `Manage Messages` permission. if user.is_some() { - let req = permissions::MANAGE_MESSAGES; + let req = Permissions::MANAGE_MESSAGES; if !utils::user_has_perms(self.channel_id, req).unwrap_or(true) { return Err(Error::Model(ModelError::InvalidPermissions(req))); |