mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
feat(MessageReaction): add react method (#7810)
This commit is contained in:
@@ -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.
|
* Removes all users from this reaction.
|
||||||
* @returns {Promise<MessageReaction>}
|
* @returns {Promise<MessageReaction>}
|
||||||
|
|||||||
1
packages/discord.js/typings/index.d.ts
vendored
1
packages/discord.js/typings/index.d.ts
vendored
@@ -1886,6 +1886,7 @@ export class MessageReaction {
|
|||||||
public message: Message | PartialMessage;
|
public message: Message | PartialMessage;
|
||||||
public get partial(): false;
|
public get partial(): false;
|
||||||
public users: ReactionUserManager;
|
public users: ReactionUserManager;
|
||||||
|
public react(): Promise<MessageReaction>;
|
||||||
public remove(): Promise<MessageReaction>;
|
public remove(): Promise<MessageReaction>;
|
||||||
public fetch(): Promise<MessageReaction>;
|
public fetch(): Promise<MessageReaction>;
|
||||||
public toJSON(): unknown;
|
public toJSON(): unknown;
|
||||||
|
|||||||
Reference in New Issue
Block a user