Skip to content

Commit

Permalink
add missing permission
Browse files Browse the repository at this point in the history
  • Loading branch information
suneettipirneni committed May 13, 2024
1 parent 1f2891e commit 3e56ff8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions twilight-model/src/guild/permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ bitflags! {
const USE_EXTERNAL_SOUNDS = 1 << 45;
/// Allows sending voice messages
const SEND_VOICE_MESSAGES = 1 << 46;
/// Allows sending polls.
const SEND_POLLS = 1 << 49;
}
}

Expand Down Expand Up @@ -203,6 +205,8 @@ mod tests {
);
const_assert_eq!(Permissions::USE_SOUNDBOARD.bits(), 1 << 42);
const_assert_eq!(Permissions::USE_EXTERNAL_SOUNDS.bits(), 1 << 45);
const_assert_eq!(Permissions::SEND_VOICE_MESSAGES.bits(), 1 << 46);
const_assert_eq!(Permissions::SEND_POLLS.bits(), 1 << 49);

#[test]
fn serde() {
Expand Down

0 comments on commit 3e56ff8

Please sign in to comment.