Skip to content

Commit 705e1bb

Browse files
authored
Add guild_id to ReactionRemoveAll (#3058)
This was missing on FullEvent but was present within the event itself.
1 parent 5e275eb commit 705e1bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/gateway/client/dispatch.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ fn update_cache_with_event(
325325
removed_reaction: event.reaction,
326326
},
327327
Event::ReactionRemoveAll(event) => FullEvent::ReactionRemoveAll {
328+
guild_id: event.guild_id,
328329
channel_id: event.channel_id,
329330
removed_from_message_id: event.message_id,
330331
},

src/gateway/client/event_handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ event_handler! {
315315

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

321321
/// Dispatched when all reactions of a message are detached from a message.
322322
///

0 commit comments

Comments
 (0)