Skip to content

Commit

Permalink
feat(GatewayMessageReactionAddDispatch): add message_author_id (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Jul 13, 2023
1 parent 9d6ae11 commit 82d7024
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
9 changes: 8 additions & 1 deletion deno/gateway/v10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,10 @@ export type GatewayMessageReactionAddDispatchData = GatewayMessageReactionAddDis
/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
*/
export type GatewayMessageReactionRemoveDispatch = ReactionData<GatewayDispatchEvents.MessageReactionRemove, 'member'>;
export type GatewayMessageReactionRemoveDispatch = ReactionData<
GatewayDispatchEvents.MessageReactionRemove,
'member' | 'message_author_id'
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
Expand Down Expand Up @@ -2024,6 +2027,10 @@ type ReactionData<E extends GatewayDispatchEvents, O extends string = never> = D
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIEmoji;
/**
* The id of the user that posted the message that was reacted to
*/
message_author_id?: Snowflake;
},
O
>
Expand Down
9 changes: 8 additions & 1 deletion deno/gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,10 @@ export type GatewayMessageReactionAddDispatchData = GatewayMessageReactionAddDis
/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
*/
export type GatewayMessageReactionRemoveDispatch = ReactionData<GatewayDispatchEvents.MessageReactionRemove, 'member'>;
export type GatewayMessageReactionRemoveDispatch = ReactionData<
GatewayDispatchEvents.MessageReactionRemove,
'member' | 'message_author_id'
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
Expand Down Expand Up @@ -2023,6 +2026,10 @@ type ReactionData<E extends GatewayDispatchEvents, O extends string = never> = D
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIEmoji;
/**
* The id of the user that posted the message that was reacted to
*/
message_author_id?: Snowflake;
},
O
>
Expand Down
9 changes: 8 additions & 1 deletion gateway/v10.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,10 @@ export type GatewayMessageReactionAddDispatchData = GatewayMessageReactionAddDis
/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
*/
export type GatewayMessageReactionRemoveDispatch = ReactionData<GatewayDispatchEvents.MessageReactionRemove, 'member'>;
export type GatewayMessageReactionRemoveDispatch = ReactionData<
GatewayDispatchEvents.MessageReactionRemove,
'member' | 'message_author_id'
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
Expand Down Expand Up @@ -2024,6 +2027,10 @@ type ReactionData<E extends GatewayDispatchEvents, O extends string = never> = D
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIEmoji;
/**
* The id of the user that posted the message that was reacted to
*/
message_author_id?: Snowflake;
},
O
>
Expand Down
9 changes: 8 additions & 1 deletion gateway/v9.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,10 @@ export type GatewayMessageReactionAddDispatchData = GatewayMessageReactionAddDis
/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
*/
export type GatewayMessageReactionRemoveDispatch = ReactionData<GatewayDispatchEvents.MessageReactionRemove, 'member'>;
export type GatewayMessageReactionRemoveDispatch = ReactionData<
GatewayDispatchEvents.MessageReactionRemove,
'member' | 'message_author_id'
>;

/**
* https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove
Expand Down Expand Up @@ -2023,6 +2026,10 @@ type ReactionData<E extends GatewayDispatchEvents, O extends string = never> = D
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIEmoji;
/**
* The id of the user that posted the message that was reacted to
*/
message_author_id?: Snowflake;
},
O
>
Expand Down

1 comment on commit 82d7024

@vercel
Copy link

@vercel vercel bot commented on 82d7024 Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.