awaited defer
This commit is contained in:
parent
1c8f4bdfeb
commit
4e8867c473
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue