标签: javascript node.js discord discord.js
我想在我的不和谐机器人中添加一个名为!boom的命令,该命令会删除发送该命令的公会中的所有通道。
!boom
答案 0 :(得分:0)
要删除每个频道,您可以使用以下方法:
message.guild.channels.cache.each((channel) => { channel.delete() .then(console.log) .catch(console.error); };