aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-04-11 22:48:51 +0300
committerGravatar GitHub <[email protected]>2021-04-11 22:48:51 +0300
commit51af1369e0d9c2ad185f0c0920b599b7187ed077 (patch)
tree9c07af29ddc44771422329d238784f1a2f22b6aa
parentMerge pull request #1513 from python-discord/bug/filters/1469/invis-chars (diff)
parentMerge branch 'main' into sorted-available-channels (diff)
Merge pull request #1516 from ToxicKidz/sorted-available-channels
Sort the available help channels in #how-to-get-help by position
-rw-r--r--bot/exts/help_channels/_cog.py4
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: