diff --git a/packages/discord.js/src/structures/MessageReaction.js b/packages/discord.js/src/structures/MessageReaction.js index 857e719b8db3..099ade8c7bfb 100644 --- a/packages/discord.js/src/structures/MessageReaction.js +++ b/packages/discord.js/src/structures/MessageReaction.js @@ -52,6 +52,14 @@ class MessageReaction { } } + /** + * Makes the client user react with this reaction + * @returns {Promise} + */ + react() { + return this.message.react(this.emoji); + } + /** * Removes all users from this reaction. * @returns {Promise} diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index d7f8f19e7791..2456f95313f4 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1883,6 +1883,7 @@ export class MessageReaction { public message: Message | PartialMessage; public get partial(): false; public users: ReactionUserManager; + public react(): Promise; public remove(): Promise; public fetch(): Promise; public toJSON(): unknown;