From 8e3ca6a1f2ad3ba71acba4c13b26c978f9ab93f3 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 15 Jul 2023 18:11:19 -0400 Subject: [PATCH] why is that a typeerror lol --- pterodactyl/ptero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 2b0837f..170bbc8 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -95,7 +95,7 @@ class Pterodactyl(commands.Cog): async with session.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response: response_dict = await response.json() if response_dict['attributes']['current_state'] == "offline": - await interaction_message.edit("Packwiz installer finished!") + await interaction_message.edit(content="Packwiz installer finished!") break else: await asyncio.sleep(1) @@ -104,7 +104,7 @@ class Pterodactyl(commands.Cog): await self.put(await self.get_url(interaction.guild, "startup/variable"), headers, data) elif response_dict['attributes']['current_state'] == "running" or response_dict['attributes']['current_state'] == "starting": passed_info = [old_startup_args[0], old_startup_args[1], headers, put_data, new_put_data, interaction_message] - await interaction_message.edit("Server is already running! Are you sure you'd like to stop the server for updates?", view=self.UpdateButtons(timeout=180, passed_info=passed_info)) + await interaction_message.edit(content="Server is already running! Are you sure you'd like to stop the server for updates?", view=self.UpdateButtons(timeout=180, passed_info=passed_info)) class UpdateButtons(discord.ui.View): def __init__(self, timeout, passed_info):