【发布时间】:2021-04-12 02:46:43
【问题描述】:
我在 python discord bot 中创建了帮助命令 但是help cmd已经存在了如何制作help命令?
@app.command()
async def help(ctx, helpcmd):
if helpcmd == 'clear':
(help embed or something)
【问题讨论】:
标签: python discord.py
我在 python discord bot 中创建了帮助命令 但是help cmd已经存在了如何制作help命令?
@app.command()
async def help(ctx, helpcmd):
if helpcmd == 'clear':
(help embed or something)
【问题讨论】:
标签: python discord.py
如果您想创建自己的帮助命令,请确保将其添加到代码的顶部:
app.remove_command('help')
这是制作自定义帮助命令的最佳方式。有关更多信息,请查看此 StackOverflow 帖子:How do I put discord.py help command in an embed?
【讨论】: