feat(MessageReaction): add react method (#7810)

This commit is contained in:
Rodry
2022-06-05 22:28:44 +01:00
committed by GitHub
parent 0ccc243c8f
commit a3287782b5
2 changed files with 9 additions and 0 deletions

View File

@@ -52,6 +52,14 @@ class MessageReaction {
}
}
/**
* Makes the client user react with this reaction
* @returns {Promise<MessageReaction>}
*/
react() {
return this.message.react(this.emoji);
}
/**
* Removes all users from this reaction.
* @returns {Promise<MessageReaction>}

View File

@@ -1886,6 +1886,7 @@ export class MessageReaction {
public message: Message | PartialMessage;
public get partial(): false;
public users: ReactionUserManager;
public react(): Promise<MessageReaction>;
public remove(): Promise<MessageReaction>;
public fetch(): Promise<MessageReaction>;
public toJSON(): unknown;