当试图让我的机器人删除一条消息时,我使用命令=m p "some song"得到了这个错误: at RequestHandler.execute\src\rest\RequestHandler.js:50:14)
at async MessageManager.delete (C:\poe-sieglind\node_modules\discord.js\src\managers\MessageManager.js:205
我正在用discord.js制作一个不和谐的机器人,情况是我有一个命令来从聊天中删除消息,但它们只能由具有MANAGE_MESSAGES权限的人使用,这个命令工作得很好,但我不理解它,因为当它检测到这个人没有权限时,它不会发送没有MANAGE_MESSAGES权限的人的消息。case 'delete':
if (!args[1]) return message.reply('Please enter a number of messages
直到discord.js v12,我的机器人会删除它发布的如下消息: .then(msg => { msg.delete({timeout: 5000}) //amount of time I want it to wait in milliseconds .catch()
但是,现在我将discord.js模块更新为v13,消息</e