Skip to content

Commit

Permalink
fix(gateway): Add missing flag to EventTypeFlags::GUILD_MESSAGES (#…
Browse files Browse the repository at this point in the history
…2332)

`EventTypeFlag::GUILD_MESSAGES` should include the
`EventTypeFlag::MESSAGE_UPDATE` flag and no duplicated
`EventTypeFlag::MESSAGE_DELETE` flag.

Co-authored-by: Quang Pham <quangphammailbox@gmail.com>
  • Loading branch information
BooTheDev and BooTheDev authored Apr 5, 2024
1 parent 816571c commit effddf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twilight-gateway/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ bitflags! {
/// [`Intents::GUILD_MESSAGES`]: crate::Intents::GUILD_MESSAGES
const GUILD_MESSAGES = Self::MESSAGE_CREATE.bits()
| Self::MESSAGE_DELETE.bits()
| Self::MESSAGE_DELETE.bits()
| Self::MESSAGE_DELETE_BULK.bits();
| Self::MESSAGE_DELETE_BULK.bits()
| Self::MESSAGE_UPDATE.bits();

/// All [`EventTypeFlags`] in [`Intents::GUILD_MESSAGE_REACTIONS`].
///
Expand Down

0 comments on commit effddf2

Please sign in to comment.