3
我已經創建了自己的不和諧的機器人,但我有這個錯誤此代碼BOT消息:不和諧JS添加反應
\t \t message.channel.send(":apple:***SONDAGE :apple:\n "+choix1+" ou "+""+choix2+"***")
\t \t .then(function (message) {
message.react("")
message.react("")
\t \t message.pin()
message.delete()
\t \t \t });
這是將消息發送到通道和加入反應,並在我的控制檯我有這樣的錯誤:
(node:11728) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): DiscordAPIError: Unknown Message
(node:11728) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:11728) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): DiscordAPIError: Unknown Message