Python 获取所有bot命令discord.py

Python 获取所有bot命令discord.py,python,discord.py-rewrite,Python,Discord.py Rewrite,我正在使用discord.py rewrite生成一个帮助命令,我需要一种方法来迭代我在bot中已经拥有的所有命令,有没有一种方法可以像bot.get_all_命令那样执行 for command in bot.get_all_commands: print(command) 返回a中的所有命令。您可以使用返回以前使用的所有命令和别名,请参阅中的详细信息

我正在使用discord.py rewrite生成一个帮助命令,我需要一种方法来迭代我在bot中已经拥有的所有命令,有没有一种方法可以像bot.get_all_命令那样执行

for command in bot.get_all_commands:
    print(command)
返回a中的所有命令。

您可以使用返回以前使用的所有命令和别名,请参阅中的详细信息