From 4e8867c473c6d9f047480636083af9b57485c4d3 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 15 Jul 2023 17:51:41 -0400 Subject: [PATCH] awaited defer --- pterodactyl/ptero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index ef4b167..8263c95 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -40,7 +40,7 @@ class Pterodactyl(commands.Cog): @app_commands.command() async def update(self, interaction: discord.Interaction): """Updates the server using the arguments provided in the server's configuration.""" - interaction.response.defer(ephemeral=True, thinking=True) + await interaction.response.defer(ephemeral=True, thinking=True) interaction_message = await interaction.original_response() if await self.config.guild(interaction.guild).api_key() is None: await interaction_message.edit(f"Something went wrong.\nError: `API Key not set.`", ephemeral=True)