From d989591431fc741c78c3e1ce5c04ea53a71919ac Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Fri, 8 Jun 2018 13:05:36 -0800 Subject: [PATCH] sort cog_commands --- src/exts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exts/utils.py b/src/exts/utils.py index 56ee76a..f51ed99 100644 --- a/src/exts/utils.py +++ b/src/exts/utils.py @@ -722,7 +722,7 @@ class Utils: f"Prefixes available for this guild:\n" f"> {prefixes}\n\uFFF7\n\uFFF8") for cog in sorted(self.bot.cogs): - for command in sorted(self.bot.get_cog_commands(cog)): + for command in sorted(self.bot.get_cog_commands(cog), key=lambda x: x.name): if not command.hidden: pag.add(f'\uFFF6{command.name}') pag.add(f'> {command.short_doc}', truncate=True)