message.member.hasPermission('MANAGE_MESSAGES')) return message.channel.send("You don't have permission: 3000 }))
if (parts[1] > 100) return message.channel.send("You can't delete more than 100 messagesneed to delete at lea
to run this command").then(msg => msg.delete(5000)); return msg.reply("Sorry I can't messages]: The messages must be an Array, Collection, or number.at
我正在用discord.js制作一个不和谐的机器人,情况是我有一个命令来从聊天中删除消息,但它们只能由具有MANAGE_MESSAGES权限的人使用,这个命令工作得很好,但我不理解它,因为当它检测到这个人没有权限时,它不会发送没有MANAGE_MESSAGES权限的人的消息。case 'delete':
if (!args[1]) return message.reply('Please enter a number of messages you would