From f2de807dd8c56c2ee3a1195c4d0bf0f90ec4c245 Mon Sep 17 00:00:00 2001 From: Izan Date: Sun, 2 Oct 2022 14:39:41 +0100 Subject: Fix order of function parameters on @discord.ui.select During development the order of the `interaction` and `select` swapped, but this wasn't updated in the codebase. This commit fixes that. --- bot/exts/utilities/epoch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/utilities/epoch.py') 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": -- cgit v1.2.3