diff --git a/packages/discord.js/src/client/actions/MessageReactionAdd.js b/packages/discord.js/src/client/actions/MessageReactionAdd.js index de026a82b..9e2b40ee8 100644 --- a/packages/discord.js/src/client/actions/MessageReactionAdd.js +++ b/packages/discord.js/src/client/actions/MessageReactionAdd.js @@ -51,6 +51,7 @@ class MessageReactionAdd extends Action { /** * Provides additional information about altered reaction * @typedef {Object} MessageReactionEventDetails + * @property {ReactionType} type The type of the reaction * @property {boolean} burst Determines whether a super reaction was used */ /** @@ -60,7 +61,7 @@ class MessageReactionAdd extends Action { * @param {User} user The user that applied the guild or reaction emoji * @param {MessageReactionEventDetails} details Details of adding the reaction */ - this.client.emit(Events.MessageReactionAdd, reaction, user, { burst: data.burst }); + this.client.emit(Events.MessageReactionAdd, reaction, user, { type: data.type, burst: data.burst }); return { message, reaction, user }; } diff --git a/packages/discord.js/src/client/actions/MessageReactionRemove.js b/packages/discord.js/src/client/actions/MessageReactionRemove.js index 888f354f1..132edc14a 100644 --- a/packages/discord.js/src/client/actions/MessageReactionRemove.js +++ b/packages/discord.js/src/client/actions/MessageReactionRemove.js @@ -41,7 +41,7 @@ class MessageReactionRemove extends Action { * @param {User} user The user whose emoji or reaction emoji was removed * @param {MessageReactionEventDetails} details Details of removing the reaction */ - this.client.emit(Events.MessageReactionRemove, reaction, user, { burst: data.burst }); + this.client.emit(Events.MessageReactionRemove, reaction, user, { type: data.type, burst: data.burst }); return { message, reaction, user }; } diff --git a/packages/discord.js/src/util/APITypes.js b/packages/discord.js/src/util/APITypes.js index 0032dd436..92495107c 100644 --- a/packages/discord.js/src/util/APITypes.js +++ b/packages/discord.js/src/util/APITypes.js @@ -514,6 +514,11 @@ * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/PollLayoutType} */ +/** + * @external ReactionType + * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/ReactionType} + */ + /** * @external RoleFlags * @see {@link https://discord-api-types.dev/api/discord-api-types-v10/enum/RoleFlags} diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 8d30577c7..ac5df23cb 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -2447,6 +2447,7 @@ export class MessageReaction { } export interface MessageReactionEventDetails { + type: ReactionType; burst: boolean; }