fix: testing a fix for the previous commit

This commit is contained in:
Seaswimmer 2023-07-15 23:03:18 -04:00
parent 73f6520fac
commit b5f081d479
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -109,7 +109,7 @@ class Pterodactyl(commands.Cog):
"headers": headers,
"updater_startup_vars": updater_startup_vars,
"old_startup_vars": old_startup_vars,
"interaction_message": interaction_message
"interaction": interaction
}
await interaction_message.edit(content="The 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))
@ -167,7 +167,7 @@ class Pterodactyl(commands.Cog):
async def no_button(self, button:ui.Button, interaction:discord.Interaction):
for button in self.children:
button.disabled = True
await interaction.edit_original_response(content=f"Command cancelled.", view=self)
await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=self)
@app_commands.command()
async def test(self, interaction: discord.Interaction, endpoint: str = None):