From 083ceebfadfbf88752fb1b50bf0c86feff94875e Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sun, 21 Aug 2022 22:16:26 +0100 Subject: Update ordering of Interaction callbacks The order the args get passed to callbacks has been changed in Discord.py 2.0. --- arthur/exts/cloudflare/zones.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/exts/cloudflare/zones.py') diff --git a/arthur/exts/cloudflare/zones.py b/arthur/exts/cloudflare/zones.py index f265651..657de71 100644 --- a/arthur/exts/cloudflare/zones.py +++ b/arthur/exts/cloudflare/zones.py @@ -31,7 +31,7 @@ class ZonesView(discord.ui.View): placeholder="Select a zone to purge...", ) async def select_zones( - self, dropdown: discord.ui.Select, interaction: discord.Interaction + self, interaction: discord.Interaction, dropdown: discord.ui.Select ) -> None: """Drop down menu contains the list of zones.""" zone_name = dropdown.values[0] -- cgit v1.2.3