Discord.js 机器人没有权限,但它有

Discord.js bot doesn't have permissions but it does

这是我的代码: await message.member.timeout(spamTimeout, 'Recieved a timeout for exceeding max message limit.'); 它给我一个错误说:

DiscordAPIError: Missing Permissions

但机器人是公会的所有者,为什么它没有权限?

我自己解决了这个问题,问题是我试图超时的成员有 ADMINISTRATOR,但是如果你有 ADMINISTRATOR.

就不能超时

Also I would just like to tell everyone that a bot can be the owner of a guild. Check guild.create();