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