Skip to content

Commit

Permalink
Fixing broken select menu (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinH-adl authored Oct 22, 2024
1 parent 8cb5d31 commit 405eb89
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/commands/help_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,19 @@ def total_pages(self):
def update_select_options(self):
"""Update options in the select menu"""
options = []
options.append(
SelectOption(
label="DuckBot",
value=0,
description="DuckBot is the CS Club's Discord bot, created by the CS Club Open Source Team.",
)
)
for i, command in enumerate(self.group_commands):
label = f"{command.name}"
options.append(
SelectOption(label=label, value=str(i), description=command.description)
SelectOption(
label=label, value=str(i + 1), description=command.description
)
)
options.append(
SelectOption(
Expand Down

0 comments on commit 405eb89

Please sign in to comment.