aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/utilities/epoch.py
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-10-02 16:00:53 +0100
committerGravatar GitHub <[email protected]>2022-10-02 16:00:53 +0100
commit143bea4438869df6e15c975a0b383c80344eb946 (patch)
tree52b9a682e2d7a1b31987454f1b5ff88d857db09b /bot/exts/utilities/epoch.py
parentMerge pull request #1110 from python-discord/fix-issue-1106 (diff)
parentMerge branch 'main' into fix-GH-1108 (diff)
Merge pull request #1111 from python-discord/fix-GH-1108
Fix order of function parameters on @discord.ui.select
Diffstat (limited to 'bot/exts/utilities/epoch.py')
-rw-r--r--bot/exts/utilities/epoch.py2
1 files changed, 1 insertions, 1 deletions
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":