如何在嵌入式帮助命令中隐藏所有者命令[discord.py rewrite]

时间:2020-05-22 14:01:36

标签: python discord discord.py discord.py-rewrite

所以我遇到了这个问题,我想隐藏应该仅仅所有者可访问的命令。

这是帮助菜单显示的内容The small section that shows the owner commands

这是用于创建帮助菜单的代码And this the code for the help command

我尝试通过执行@commands.command(hidden=True)隐藏命令,但是并没有隐藏它们。

我浏览了Discord.py文档,似乎找不到任何有助于查询的内容。

感谢您的帮助!

编辑

解决方案 :我添加了cogs.remove('Owner'),它删除了齿轮及其命令。它仅从帮助菜单中删除其存在,而不是实际齿轮本身。我是在代码的第29行上完成的。

0 个答案:

没有答案