We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d93925 commit 5b3a792Copy full SHA for 5b3a792
techsupport_bot/ui/roleselect.py
@@ -21,20 +21,20 @@ def __init__(self: Self, role_list: list[str]) -> None:
21
max_values=len(role_list),
22
options=role_list,
23
)
24
- self.timeout = False
+ self.timeout = True
25
26
async def callback(self: Self, interaction: discord.Interaction) -> None:
27
"""What happens when the select menu has been used
28
29
Args:
30
interaction (discord.Interaction): The interaction that called this select object
31
"""
32
+ self.timeout = False
33
self.view.stop()
34
35
async def on_timeout(self: Self) -> None:
36
"""What happens when the view timesout. This is to prevent all roles from being removed."""
37
self.values = None
- self.timeout = True
38
39
40
0 commit comments