def help_embed_all(self, prefix, commands):
"""Create an embed message that displays command help"""
help = discord.Embed(title="Available Commands", color=constants.BLUE)
help.description = ("**Note:** don't include the angled brackets\n"
+ "For additional help, join the support server: https://discord.gg/ZqkjJEa")
help.set_footer(text="Use {}help [command] for more info on a command".format(prefix))
for command in commands:
if command.hidden:
continue
signature = self.get_command_signature(prefix, command)
help.add_field(name="{}".format(signature), value="{}".format(command.help.split('\n')[0]), inline=False)
return help
评论列表
文章目录