diff options
Diffstat (limited to 'bot/exts/events')
| -rw-r--r-- | bot/exts/events/advent_of_code/views/dayandstarview.py | 6 | ||||
| -rw-r--r-- | bot/exts/events/trivianight/_scoreboard.py | 8 | 
2 files changed, 7 insertions, 7 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( diff --git a/bot/exts/events/trivianight/_scoreboard.py b/bot/exts/events/trivianight/_scoreboard.py index a5a5fcac..bd61be3d 100644 --- a/bot/exts/events/trivianight/_scoreboard.py +++ b/bot/exts/events/trivianight/_scoreboard.py @@ -123,26 +123,26 @@ class ScoreboardView(View):          return rank_embed      @discord.ui.button(label="Scoreboard for Speed", style=ButtonStyle.green) -    async def speed_leaderboard(self, button: Button, interaction: Interaction) -> None: +    async def speed_leaderboard(self, interaction: Interaction, _: Button) -> None:          """          Send an ephemeral message with the speed leaderboard embed.          Parameters: -            - button: The discord.ui.Button instance representing the `Speed Leaderboard` button.              - interaction: The discord.Interaction instance containing information on the interaction between the user              and the button. +            - button: The discord.ui.Button instance representing the `Speed Leaderboard` button.          """          await interaction.response.send_message(embed=await self._create_speed_embed(), ephemeral=True)      @discord.ui.button(label="What's my rank?", style=ButtonStyle.blurple) -    async def rank_button(self, button: Button, interaction: Interaction) -> None: +    async def rank_button(self, interaction: Interaction, _: Button) -> None:          """          Send an ephemeral message with the user's rank for the overall points/average speed.          Parameters: -            - button: The discord.ui.Button instance representing the `What's my rank?` button.              - interaction: The discord.Interaction instance containing information on the interaction between the user              and the button. +            - button: The discord.ui.Button instance representing the `What's my rank?` button.          """          await interaction.response.send_message(embed=self._get_rank(interaction.user), ephemeral=True)  |