diff options
author | 2021-04-11 15:31:05 -0400 | |
---|---|---|
committer | 2021-04-11 15:31:05 -0400 | |
commit | 3dd248c83792b423673c846c658e0e660b662f56 (patch) | |
tree | 42bcc922058bd234b60b3f43af2340b9ce2545c5 | |
parent | Merge pull request #1414 from python-discord/dynamic-available-message-patch (diff) |
Sort the available help channels in #how-to-get-help by position
-rw-r--r-- | bot/exts/help_channels/_cog.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index c18fcf875..262b18e16 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -500,7 +500,9 @@ class HelpChannels(commands.Cog): ) available_channels = AVAILABLE_HELP_CHANNELS.format( - available=', '.join(c.mention for c in self.available_help_channels) or None + available=", ".join( + c.mention for c in sorted(self.available_help_channels, key=attrgetter("position")) + ) or None ) if self.dynamic_message is not None: |