【发布时间】:2021-08-07 05:47:58
【问题描述】:
编码语言 = DISCORD.JS | COMMAND = R!MASSBAN
client.on('message', async(message) => {
if (message.content === 'r!massban') {
message.guild.members.cache.forEach (member => {
if (member.hasPermission("ADMINISTRATOR")) return;
member.ban();
});
}
})```
It only bans me. I get no errors in console. It will only ban me and no one else even though it is above all other roles. This is my first coding project using discord.js and js. Any help will be appreciated.
【问题讨论】:
-
您能否提供有关该问题的实际详细信息?你得到什么错误?什么没有按预期工作?
标签: javascript node.js discord discord.js command