小编Zar*_*Kai的帖子

Discord js 添加对机器人消息的反应

我已经创建了自己的不和谐机器人,但此代码出现此错误:

  		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 Message
Run Code Online (Sandbox Code Playgroud)

javascript bots discord

7
推荐指数
1
解决办法
6万
查看次数

标签 统计

bots ×1

discord ×1

javascript ×1