Skip to content

Commit

Permalink
Add guild_id to ReactionRemoveAll (serenity-rs#3058)
Browse files Browse the repository at this point in the history
This was missing on FullEvent but was present within the event itself.
  • Loading branch information
jamesbt365 authored Nov 25, 2024
1 parent 5e275eb commit 705e1bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gateway/client/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ fn update_cache_with_event(
removed_reaction: event.reaction,
},
Event::ReactionRemoveAll(event) => FullEvent::ReactionRemoveAll {
guild_id: event.guild_id,
channel_id: event.channel_id,
removed_from_message_id: event.message_id,
},
Expand Down
4 changes: 2 additions & 2 deletions src/gateway/client/event_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ event_handler! {

/// Dispatched when all reactions of a message are detached from a message.
///
/// Provides the channel's id and the message's id.
ReactionRemoveAll { channel_id: ChannelId, removed_from_message_id: MessageId } => async fn reaction_remove_all(&self, ctx: Context);
/// Provides the channel's id, message's id, and guild's id if in a guild.
ReactionRemoveAll { guild_id: Option<GuildId>, channel_id: ChannelId, removed_from_message_id: MessageId } => async fn reaction_remove_all(&self, ctx: Context);

/// Dispatched when all reactions of a message are detached from a message.
///
Expand Down

0 comments on commit 705e1bb

Please sign in to comment.