Fixed interaction bug
This commit is contained in:
parent
a1c44a0540
commit
913689034c
@ -880,7 +880,7 @@ class Economy(commands.Cog):
|
||||
'packtypes', params=[('name', pack_name.lower().replace('pack', '')), ('available', True)]
|
||||
)
|
||||
if 'count' not in p_query:
|
||||
await interaction.response.send_message(
|
||||
await interaction.channel.send(
|
||||
f'Hmm...I don\'t recognize {pack_name.title()} as a pack type. Check on that and get back to me.',
|
||||
ephemeral=True
|
||||
)
|
||||
@ -924,19 +924,18 @@ class Economy(commands.Cog):
|
||||
labels=['No Customization', 'Cardset', 'Franchise', None, None]
|
||||
)
|
||||
view.option1.style = discord.ButtonStyle.danger
|
||||
await interaction.response.send_message(
|
||||
await interaction.channel.send(
|
||||
content='Would you like to apply a pack customization?',
|
||||
embed=pack_embed,
|
||||
view=view
|
||||
)
|
||||
await view.wait()
|
||||
await interaction.edit_original_response(content=None, view=None)
|
||||
|
||||
if not view.value:
|
||||
await interaction.channel.send(f'You think on it and get back to me.')
|
||||
return
|
||||
elif view.value == 'Cardset':
|
||||
await interaction.delete_original_response()
|
||||
# await interaction.delete_original_response()
|
||||
view = SelectView([SelectBuyPacksCardset(owner_team, num_packs, pack_type['id'], pack_embed, total_cost)])
|
||||
await interaction.channel.send(
|
||||
content=None,
|
||||
@ -944,7 +943,7 @@ class Economy(commands.Cog):
|
||||
)
|
||||
return
|
||||
elif view.value == 'Franchise':
|
||||
await interaction.delete_original_response()
|
||||
# await interaction.delete_original_response()
|
||||
view = SelectView(
|
||||
[
|
||||
SelectBuyPacksTeam('AL', owner_team, num_packs, pack_type['id'], pack_embed, total_cost),
|
||||
|
||||
@ -3141,7 +3141,7 @@ async def open_choice_pack(this_pack, team: dict, context, cardset_id: Optional[
|
||||
|
||||
async def confirm_pack_purchase(interaction, owner_team, num_packs, total_cost, pack_embed):
|
||||
view = Confirm(responders=[interaction.user], timeout=30)
|
||||
await interaction.edit_original_response(
|
||||
await interaction.channel.send(
|
||||
content=None,
|
||||
embed=pack_embed
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user