Skip to content

Commit

Permalink
Sort event options before showing to user
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Sep 3, 2023
1 parent bb037ae commit 4cce565
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/discord/welcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ async def request_access(
event_options.append(
discord.SelectOption(label=event["name"], emoji=event["emoji"]),
)
event_options.sort(key=lambda x: x.label)
event_chooser = Chooser(
"event",
event_options,
Expand Down

0 comments on commit 4cce565

Please sign in to comment.