awaited defer

This commit is contained in:
Seaswimmer 2023-07-15 17:51:41 -04:00
parent 1c8f4bdfeb
commit 4e8867c473
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)