角色、机器人和权限

时间:2021-05-10 04:15:40

标签: javascript discord discord.js bots

当用户写入 Discord 中的 Intros 频道时,我使用 discord.js 编写了一个小型机器人来删除特定角色(“创建简介”)。根据我测试的角色,它起作用,而其他时候则不起作用。最终我发现它与服务器设置 > 角色下的 Bot 角色相对于用户角色的位置有关。这些东西有堆栈顺序吗?我想更好地了解是什么导致了我的麻烦,这样我就可以提高我的技能。

Screenshot of role placement. The red circled role is the one in question. The "Hi I'm a Bot" role above it is the bot in question.

0 个答案:

没有答案