Repository: python-discord/sir-lancebot
Issue: AttributeError: 'Select' object has no attribute 'data'

Sentry Issue: [SIR-LANCEBOT-8P](https://sentry.io/organizations/python-discord/issues/3635087462/?referrer=github_integration)

```
AttributeError: 'Select' object has no attribute 'data'
  File "discord/ui/view.py", line 425, in _scheduled_task
    await item.callback(interaction)
  File "bot/exts/utilities/epoch.py", line 124, in select_format
    selected = interaction.data["values"][0]

Ignoring exception in view "<TimestampMenuView timeout=60 children=1>" for item "<Select placeholder='Select the format of your timestamp' min_values=1 max_values=1 options=[<SelectOption label='Epoch' value='Epoch' description='1664568890' emoji=None default=False>, <SelectOption label='Short Time' value='Short Time' description='8:14 PM' emoji=None default=False>, <SelectOption label='Long Time' value='Long Time' description='8:14:50 PM' emoji=None default=False>, <SelectOption label='Short Date' value='Short Date' description='09/30/2022' emoji=None default=False>, <SelectOption l..."
```

Changed files:
bot/exts/events/advent_of_code/views/dayandstarview.py, bot/exts/utilities/epoch.py, bot/exts/events/trivianight/_scoreboard.py

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)
 
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":