aboutsummaryrefslogtreecommitdiff
path: root/src/model/channel/reaction.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-09-21 17:29:10 -0700
committerZeyla Hellyer <[email protected]>2017-09-21 17:29:10 -0700
commit092f288fdd22ae39b019e61a6f12420b6ca3b67c (patch)
tree6d8863cc859945457dc6c4b111017fa21ca8103f /src/model/channel/reaction.rs
parentRemove tokio usage (diff)
downloadserenity-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.rs2
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)));