Add 23 Season as options
This commit is contained in:
parent
4b034f6cdd
commit
d74d2b3ac5
@ -18,9 +18,10 @@ db = SqliteDatabase(
|
||||
}
|
||||
)
|
||||
|
||||
MINOR_CARDSET_PARAMS = [('cardset_id', 1), ('cardset_id', 3)]
|
||||
MINOR_CARDSET_PARAMS = [('cardset_id', 9), ('cardset_id', 3)]
|
||||
MAJOR_CARDSET_PARAMS = [
|
||||
('cardset_id', 1), ('cardset_id', 3), ('cardset_id', 4), ('cardset_id', 5), ('cardset_id', 6), ('cardset_id', 7)
|
||||
('cardset_id', 1), ('cardset_id', 3), ('cardset_id', 4), ('cardset_id', 5), ('cardset_id', 6), ('cardset_id', 7),
|
||||
('cardset_id', 9), ('cardset_id', 10)
|
||||
]
|
||||
|
||||
|
||||
|
||||
@ -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', 'Mario Super Sluggers', 'Sams Choice'] = 'All'):
|
||||
'2022 Promos', '2022 Season', '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']:
|
||||
|
||||
@ -503,6 +503,7 @@ class SelectOpenPack(discord.ui.Select):
|
||||
class SelectPaperdexCardset(discord.ui.Select):
|
||||
def __init__(self):
|
||||
options = [
|
||||
discord.SelectOption(label='2023 Season'),
|
||||
discord.SelectOption(label='2022 Season'),
|
||||
discord.SelectOption(label='2022 Promos'),
|
||||
discord.SelectOption(label='2021 Season'),
|
||||
@ -530,6 +531,8 @@ class SelectPaperdexCardset(discord.ui.Select):
|
||||
cardset_id = 7
|
||||
elif self.values[0] == 'Mario Super Sluggers':
|
||||
cardset_id = 8
|
||||
elif self.values[0] == '2023 Season':
|
||||
cardset_id = 9
|
||||
|
||||
c_query = db_get('cardsets', object_id=cardset_id, none_okay=False)
|
||||
await interaction.response.edit_message(content=f'Okay, sifting through your cards...', view=None)
|
||||
@ -654,6 +657,7 @@ 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='2023 Season'),
|
||||
discord.SelectOption(label='2022 Season'),
|
||||
discord.SelectOption(label='2021 Season'),
|
||||
discord.SelectOption(label='2019 Season'),
|
||||
@ -680,6 +684,8 @@ class SelectBuyPacksCardset(discord.ui.Select):
|
||||
cardset_id = 6
|
||||
elif self.values[0] == '2012 Season':
|
||||
cardset_id = 7
|
||||
elif self.values[0] == '2023 Season':
|
||||
cardset_id = 9
|
||||
|
||||
self.pack_embed.description = f'{self.pack_embed.description} - {self.values[0]}'
|
||||
view = Confirm(responders=[interaction.user], timeout=30)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user