From 5b18b6612a4160e8276ec81eb61122a83aaedd72 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 11:51:44 -0500 Subject: [PATCH] fix(aurora): defer before sending the user a message --- aurora/aurora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index 5bc3911..99fe8b7 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -362,6 +362,7 @@ class Aurora(commands.Cog): ) return + await interaction.response.defer() if silent is None: silent = not await config.guild(interaction.guild).dm_users() if silent is False: @@ -379,7 +380,6 @@ class Aurora(commands.Cog): except discord.errors.HTTPException: pass - await interaction.response.defer() await target.add_roles( role, reason=f"Role added by {interaction.user.id}{(' for ' + {humanize.precisedelta(parsed_time)} if parsed_time != 'NULL' else '')} for: {reason}",