Skip to content

Commit ddc1814

Browse files
committed
Fix undeclared vars
1 parent 86ab3a7 commit ddc1814

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/thread.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3195,6 +3195,10 @@ async def callback(self, interaction: discord.Interaction):
31953195
"Failed unsnoozing thread prior to precreate menu selection; continuing.",
31963196
exc_info=True,
31973197
)
3198+
# Define selection variables
3199+
chosen_label = self.values[0]
3200+
key = chosen_label.lower().replace(" ", "_")
3201+
selected = options.get(key)
31983202
# Remove the view
31993203
try:
32003204
msg = getattr(interaction, "message", None)

0 commit comments

Comments
 (0)