我最近一直在面对这个问题,我不知道为什么。当我想踢任何人的时候,它根本不起作用!ban命令也是如此。它只是在这里给我一个错误。我甚至在我的机器人中有所有的烫发,并给了它mod角色,这里有什么问题吗?try:
await member.send(f"It seems you have been kicked out of {ctx.guild.name} by {c
当我尝试使用踢命令时,它是TypeError: message.author.hasPermission is not a function。如果您没有KICK_MEMBERS权限,我希望它不起作用。这是我返回错误的代码:
if (!message.author.hasPermission("KICK_MEMBERS")) return;
message.member.hasPermission(["KICK_MEMBERS", "ADMINISTRATOR"])) return message.channel.send("Hey!Dont try to make me say that!")message }因此,当我在一个没有权限的</