Skip to content

Commit 1af2d27

Browse files
authored
change WEBPAGE_CHOICES from tuple to list (#182)
to fix `TypeError`
1 parent 55f4bbe commit 1af2d27

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bot/cogs/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from discord.app_commands import Choice
22

3-
WEBPAGE_CHOICES: tuple[Choice[str], ...] = (
3+
WEBPAGE_CHOICES: list[Choice[str], ...] = [
44
Choice(name="Home", value=""),
55
Choice(name="Getting started", value="getting-started/"),
66
Choice(name="Resources", value="resources/"),
@@ -9,7 +9,7 @@
99
Choice(name="Code Adventure", value="code-adventure/"),
1010
Choice(name="Learning path", value="resources/learning-path/"),
1111
Choice(name="Codeblocks", value="rules/channels/#__tabbed_2_1"),
12-
)
12+
]
1313

1414
LATEX_COLORS = {
1515
"emerald": "Emerald",

0 commit comments

Comments
 (0)