diff options
| author | 2022-10-02 15:50:36 +0100 | |
|---|---|---|
| committer | 2022-10-02 15:50:36 +0100 | |
| commit | 3943d271c6ed88adc2f6d55a4581193cbc6bd21f (patch) | |
| tree | df252009ee0f22539c81b9d7c2f85efb94ca9cf1 /bot/exts/events/advent_of_code | |
| parent | Fix order of function parameters on @discord.ui.select (diff) | |
Fix order of function parameters on @discord.ui.button
Diffstat (limited to 'bot/exts/events/advent_of_code')
| -rw-r--r-- | bot/exts/events/advent_of_code/views/dayandstarview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/events/advent_of_code/views/dayandstarview.py b/bot/exts/events/advent_of_code/views/dayandstarview.py index d23de2c8..f0ebc803 100644 --- a/bot/exts/events/advent_of_code/views/dayandstarview.py +++ b/bot/exts/events/advent_of_code/views/dayandstarview.py @@ -69,7 +69,7 @@ class AoCDropdownView(discord.ui.View): self.star = select.values[0] @discord.ui.button(label="Fetch", style=discord.ButtonStyle.blurple) - async def fetch(self, _: 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( |