mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: resolve emoji in Message#react (#5614)
This commit is contained in:
@@ -555,6 +555,7 @@ class Message extends Base {
|
||||
* .catch(console.error);
|
||||
*/
|
||||
async react(emoji) {
|
||||
emoji = this.client.emojis.resolveIdentifier(emoji);
|
||||
await this.channel.messages.react(this.id, emoji);
|
||||
return this.client.actions.MessageReactionAdd.handle({
|
||||
user: this.client.user,
|
||||
|
||||
Reference in New Issue
Block a user