mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +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);
|
* .catch(console.error);
|
||||||
*/
|
*/
|
||||||
async react(emoji) {
|
async react(emoji) {
|
||||||
|
emoji = this.client.emojis.resolveIdentifier(emoji);
|
||||||
await this.channel.messages.react(this.id, emoji);
|
await this.channel.messages.react(this.id, emoji);
|
||||||
return this.client.actions.MessageReactionAdd.handle({
|
return this.client.actions.MessageReactionAdd.handle({
|
||||||
user: this.client.user,
|
user: this.client.user,
|
||||||
|
|||||||
Reference in New Issue
Block a user