diff options
| -rw-r--r-- | bot/exts/events/advent_of_code/views/dayandstarview.py | 6 | ||||
| -rw-r--r-- | bot/exts/utilities/epoch.py | 2 | 
2 files changed, 4 insertions, 4 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..d23de2c8 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, _: discord.ui.Button, interaction: discord.Interaction) -> 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/utilities/epoch.py b/bot/exts/utilities/epoch.py index bf67067c..6f572640 100644 --- a/bot/exts/utilities/epoch.py +++ b/bot/exts/utilities/epoch.py @@ -119,7 +119,7 @@ class TimestampMenuView(discord.ui.View):              self.dropdown.add_option(label=label, description=date_time)      @discord.ui.select(placeholder="Select the format of your timestamp") -    async def select_format(self, _: discord.ui.Select, interaction: discord.Interaction) -> discord.Message: +    async def select_format(self, interaction: discord.Interaction, _: discord.ui.Select) -> discord.Message:          """Drop down menu which contains a list of formats which discord timestamps can take."""          selected = interaction.data["values"][0]          if selected == "Epoch": | 
