why is that a typeerror lol
This commit is contained in:
parent
16b5663e41
commit
8e3ca6a1f2
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue