我已经创建了自己的不和谐机器人,但此代码出现此错误:
message.channel.send(":apple:***SONDAGE :apple:\n "+choix1+" ou "+""+choix2+"***")
.then(function (message) {
message.react("")
message.react("")
message.pin()
message.delete()
});Run Code Online (Sandbox Code Playgroud)
它向频道发送消息并添加反应,在我的控制台中我有这个错误:
(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 MessageRun Code Online (Sandbox Code Playgroud)