From 81373a9b428360c99d66c56e721edafe6cd11232 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Mon, 10 Nov 2025 09:53:50 -0600 Subject: [PATCH] CLAUDE: Fix Team Choice pack hanging by using interaction.followup.send() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When opening a Team Choice pack without a pre-assigned team, the bot would: 1. Edit the interaction to remove the pack selection view 2. Send team selection (AL/NL) via interaction.channel.send() 3. Return without sending a followup to the interaction 4. Discord left waiting for a response that never came Changed interaction.channel.send() to interaction.followup.send() with a helpful message explaining what's happening. This properly responds to the interaction and allows the team selection dropdown to function. The issue occurred at discord_ui/selectors.py:188 in SelectOpenPack callback. Fixes: /open-packs command hangs when selecting 'Team Choice' pack type 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- discord_ui/selectors.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/discord_ui/selectors.py b/discord_ui/selectors.py index 8c39352..1db2810 100644 --- a/discord_ui/selectors.py +++ b/discord_ui/selectors.py @@ -67,7 +67,8 @@ CARDSET_LABELS_TO_IDS = { '2024 Season': 17, '2024 Promos': 18, '1998 Season': 20, - '2025 Live': 24, + '2025 Season': 24, + '2005 Live': 27, 'Pokemon - Brilliant Stars': 23 } @@ -184,8 +185,8 @@ class SelectOpenPack(discord.ui.Select): SelectChoicePackTeam('NL', self.owner_team, cardset_id)], timeout=30 ) - await interaction.channel.send( - content=None, + await interaction.followup.send( + content='Please select a team for your Team Choice pack:', view=view ) return @@ -213,7 +214,8 @@ class SelectOpenPack(discord.ui.Select): class SelectPaperdexCardset(discord.ui.Select): def __init__(self): options = [ - discord.SelectOption(label='2025 Live'), + discord.SelectOption(label='2005 Live'), + discord.SelectOption(label='2025 Season'), discord.SelectOption(label='1998 Season'), discord.SelectOption(label='2024 Season'), discord.SelectOption(label='2023 Season'), @@ -282,7 +284,8 @@ class SelectPaperdexTeam(discord.ui.Select): class SelectBuyPacksCardset(discord.ui.Select): def __init__(self, team: dict, quantity: int, pack_type_id: int, pack_embed: discord.Embed, cost: int): options = [ - discord.SelectOption(label='2025 Live'), + discord.SelectOption(label='2005 Live'), + discord.SelectOption(label='2025 Season'), discord.SelectOption(label='1998 Season'), discord.SelectOption(label='Pokemon - Brilliant Stars'), discord.SelectOption(label='2024 Season'),