Add gauntlet record to embed

This commit is contained in:
Cal Corum 2023-04-27 00:14:29 -05:00
parent 82cab33718
commit 9f9dc05073

View File

@ -368,7 +368,7 @@ class Players(commands.Cog):
async def player_slash_command(
self, interaction: discord.Interaction, player_name: str,
cardset: Literal['All', '2012 Season', '2013 Season', '2019 Season', '2021 Season', '2022 Season',
'2022 Promos', '2022 Season', 'Mario Super Sluggers', 'Sams Choice'] = 'All'):
'2022 Promos', '2023 Live', 'Mario Super Sluggers', 'Sams Choice'] = 'All'):
# min_rarity: Literal['Replacement', 'Reserve', 'Starter', 'All-Star', 'MVP'] = None):
ephemeral = False
if interaction.channel.name in ['paper-dynasty-chat', 'pd-news-ticker']:
@ -750,7 +750,7 @@ class Players(commands.Cog):
else:
this_event = e_query['events'][0]
this_run = None
this_run, this_team = None, None
if team_abbrev:
if 'Gauntlet-' not in team_abbrev:
team_abbrev = f'Gauntlet-{team_abbrev}'
@ -772,7 +772,7 @@ class Players(commands.Cog):
await interaction.edit_original_response(
content=None,
embed=gauntlets.get_embed(this_run, this_event)
embed=gauntlets.get_embed(this_run, this_event, this_team)
)
@group_gauntlet.command(name='start', description='Start a new Gauntlet run')