diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 9c022ee..88cffe8 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -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):