From b81615e6b66d20e4718e394c1b98210b9be0d4bb Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 16 Jul 2023 13:09:15 -0400 Subject: [PATCH] fix: fixed error handling if startup args not set --- pterodactyl/ptero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index a2cda7f..43aaa62 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -62,7 +62,7 @@ class Pterodactyl(commands.Cog): await interaction_message.edit(f"Something went wrong.\nError: `Startup jar not set.`", ephemeral=True) raise LookupError("Startup jar not set.") elif await self.config.guild(interaction.guild).startup_arguments() is None: - await interaction.response.send_message(f"Something went wrong.\nError: `Startup arguments not set.`", ephemeral=True) + await interaction_message.edit(f"Something went wrong.\nError: `Startup arguments not set.`", ephemeral=True) raise LookupError("Startup arguments not set.") else: api_key = await self.config.guild(interaction.guild).api_key()