gpt4 book ai didi

python - ​无类别 : help Shows this message. 键入 !help 命令以获取有关命令的更多信息。您还可以输入 !helpcategory 以获取有关类别的更多信息

转载 作者:行者123 更新时间:2023-12-01 09:19:08 26 4
gpt4 key购买 nike

我从常规的discord.py更改为重写版本,并且我曾经有一个自定义的!help命令。

现在,每当我发布 !help 时,它都会显示此内容以及编码的帮助消息:

​No Category:
help Shows this message.

Type !help command for more info on a command.
You can also type !help category for more info on a category.

关于如何删除它有什么想法吗?我上网查了一下,似乎只有人问如何更改 !help 命令的描述和类别名称。

最佳答案

您可以使用 Bot.remove_command 删除内置帮助命令。类似的东西

from discord.ext.commands import Bot

bot = Bot('!')
bot.remove_command('help')

@bot.command()
async def help(ctx):
...

关于python - ​无类别 : help Shows this message. 键入 !help 命令以获取有关命令的更多信息。您还可以输入 !helpcategory 以获取有关类别的更多信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50953985/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com