Skip to content

Commit 5b3a792

Browse files
authored
Fixes the role menu not timing out properly (#1130)
1 parent 2d93925 commit 5b3a792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

techsupport_bot/ui/roleselect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ def __init__(self: Self, role_list: list[str]) -> None:
2121
max_values=len(role_list),
2222
options=role_list,
2323
)
24-
self.timeout = False
24+
self.timeout = True
2525

2626
async def callback(self: Self, interaction: discord.Interaction) -> None:
2727
"""What happens when the select menu has been used
2828
2929
Args:
3030
interaction (discord.Interaction): The interaction that called this select object
3131
"""
32+
self.timeout = False
3233
self.view.stop()
3334

3435
async def on_timeout(self: Self) -> None:
3536
"""What happens when the view timesout. This is to prevent all roles from being removed."""
3637
self.values = None
37-
self.timeout = True
3838
self.view.stop()
3939

4040

0 commit comments

Comments
 (0)