awaited an interaction_message.edit
This commit is contained in:
parent
c093f4d347
commit
1cc6afacb2
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class Pterodactyl(commands.Cog):
|
||||||
continue
|
continue
|
||||||
for data in new_put_data:
|
for data in new_put_data:
|
||||||
await self.put(await self.get_url(interaction.guild, "startup/variable"), headers, data)
|
await self.put(await self.get_url(interaction.guild, "startup/variable"), headers, data)
|
||||||
interaction_message.edit(content="Packwiz installer finished.\nUpdate process completed!")
|
await interaction_message.edit(content="Packwiz installer finished.\nUpdate process completed!")
|
||||||
elif response_dict['attributes']['current_state'] == "running" or response_dict['attributes']['current_state'] == "starting":
|
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]
|
passed_info = [old_startup_args[0], old_startup_args[1], headers, put_data, new_put_data, interaction_message]
|
||||||
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))
|
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))
|
||||||
|
|
Reference in a new issue