表情符号必须是字符串或 Emoji/ReactionEmoji 来自获取自定义表情

Emoji must be a string or Emoji/ReactionEmoji from getting a custom emote

我正在尝试让我的机器人对特定用户发送的每条消息做出自定义表情反应。
我的代码目前是:

if (msg.content.startsWith("")) {
            msg.react(msg.guild.emojis.get("475766563719479296"))
        }

即使我检查了所有内容,我仍然收到此错误:

(node:13640) UnhandledPromiseRejectionWarning: TypeError: Emoji must be a string or Emoji/ReactionEmoji
at Message.react (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\node_modules\discord.js\src\structures\Message.js:437:23)
at Client.client.on (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\index.js:40:17)
at Client.emit (events.js:182:13)
at MessageCreateHandler.handle (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34)
at WebSocketPacketManager.handle (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:103:65)
at WebSocketConnection.onPacket (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35)
at WebSocketConnection.onMessage (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17)
at WebSocket.onMessage (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\node_modules\ws\lib\event-target.js:120:16)
at WebSocket.emit (events.js:182:13)
at Receiver._receiver.onmessage (C:\Users\Lars\Documents\Bots\Support Bot [Resanance]\node_modules\ws\lib\websocket.js:137:47)

我不知道哪里出了问题。 有人可以帮助我吗?

编辑: 我试过 msg.react("475766563719479296") 但它只是错误的未知表情符号。

没关系原来我抄错了ID

试试改用这个:

const like = client.emojis.find(emoji => emoji.name === "like");

const dislike = client.emojis.find(emoji => emoji.name === "dislike");

message.react(like);

message.react(dislike);