Skip to content

Commit

Permalink
feat: add message_author_id to MessageReactionAdd Gateway event
Browse files Browse the repository at this point in the history
  • Loading branch information
Azn9 committed Jul 18, 2023
1 parent 9a7ebaa commit 578a047
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@ static ImmutableMessageReactionAdd.Builder builder() {

@JsonProperty("user_id")
Id userId();

@JsonProperty("channel_id")
Id channelId();

@JsonProperty("message_id")
Id messageId();

@JsonProperty("guild_id")
Possible<Id> guildId();

Possible<MemberData> member();

EmojiData emoji();

@JsonProperty("message_author_id")
Id messageAuthorId();
}
2 changes: 1 addition & 1 deletion src/test/resources/gateway/MessageReactionAdd.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"t":"MESSAGE_REACTION_ADD","s":27820,"op":0,"d":{"user_id":"123456789012345678","message_id":"679003565884440580","member":{"user":{"username":"a","id":"123456789012345678","discriminator":"5520","avatar":"25a09a99ac0487bf846125084d9c7346"},"roles":["186563072540934144","186605392971694081"],"mute":false,"joined_at":"2016-05-28T02:57:17.190000+00:00","hoisted_role":null,"deaf":false},"emoji":{"name":"😊","id":null},"channel_id":"185949590652977152","guild_id":"123456789012345678"}}
{"t":"MESSAGE_REACTION_ADD","s":27820,"op":0,"d":{"user_id":"123456789012345678","message_id":"679003565884440580","message_author_id":"0","member":{"user":{"username":"a","id":"123456789012345678","discriminator":"5520","avatar":"25a09a99ac0487bf846125084d9c7346"},"roles":["186563072540934144","186605392971694081"],"mute":false,"joined_at":"2016-05-28T02:57:17.190000+00:00","hoisted_role":null,"deaf":false},"emoji":{"name":"😊","id":null},"channel_id":"185949590652977152","guild_id":"123456789012345678"}}

0 comments on commit 578a047

Please sign in to comment.