aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/events/advent_of_code
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2022-10-02 17:14:23 +0100
committerGravatar GitHub <[email protected]>2022-10-02 17:14:23 +0100
commitf07d144c7ad2ac1eae62ce75d9c0557a26b6579e (patch)
tree3dacae9666c448f5308fc3bc95e9bb90bbf14cd7 /bot/exts/events/advent_of_code
parentCorrect logic in `format_embed`. (diff)
parentMerge pull request #1111 from python-discord/fix-GH-1108 (diff)
Merge branch 'main' into fix-issue-1107
Diffstat (limited to 'bot/exts/events/advent_of_code')
-rw-r--r--bot/exts/events/advent_of_code/views/dayandstarview.py6
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(