diff options
| author | 2022-10-02 16:00:53 +0100 | |
|---|---|---|
| committer | 2022-10-02 16:00:53 +0100 | |
| commit | 143bea4438869df6e15c975a0b383c80344eb946 (patch) | |
| tree | 52b9a682e2d7a1b31987454f1b5ff88d857db09b /bot/exts/events/advent_of_code | |
| parent | Merge pull request #1110 from python-discord/fix-issue-1106 (diff) | |
| parent | Merge branch 'main' into fix-GH-1108 (diff) | |
Merge pull request #1111 from python-discord/fix-GH-1108
Fix order of function parameters on @discord.ui.select
Diffstat (limited to 'bot/exts/events/advent_of_code')
| -rw-r--r-- | bot/exts/events/advent_of_code/views/dayandstarview.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/events/advent_of_code/views/dayandstarview.py b/bot/exts/events/advent_of_code/views/dayandstarview.py index 5529c12b..f0ebc803 100644 --- a/bot/exts/events/advent_of_code/views/dayandstarview.py +++ b/bot/exts/events/advent_of_code/views/dayandstarview.py @@ -55,7 +55,7 @@ class AoCDropdownView(discord.ui.View): options=[discord.SelectOption(label=str(i)) for i in range(1, 26)], custom_id="day_select" ) - async def day_select(self, select: discord.ui.Select, interaction: discord.Interaction) -> None: + async def day_select(self, _: discord.Interaction, select: discord.ui.Select) -> None: """Dropdown to choose a Day of the AoC.""" self.day = select.values[0] @@ -64,12 +64,12 @@ class AoCDropdownView(discord.ui.View): options=[discord.SelectOption(label=str(i)) for i in range(1, 3)], custom_id="star_select" ) - async def star_select(self, select: discord.ui.Select, interaction: discord.Interaction) -> None: + async def star_select(self, _: discord.Interaction, select: discord.ui.Select) -> None: """Dropdown to choose either the first or the second star.""" self.star = select.values[0] @discord.ui.button(label="Fetch", style=discord.ButtonStyle.blurple) - async def fetch(self, button: discord.ui.Button, interaction: discord.Interaction) -> None: + async def fetch(self, interaction: discord.Interaction, _: discord.ui.Button) -> None: """Button that fetches the statistics based on the dropdown values.""" if self.day == 0 or self.star == 0: await interaction.response.send_message( |