diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index ba1ddd0..0229a5d 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -165,9 +165,7 @@ class Pterodactyl(commands.Cog): @ui.button(label="No", style=discord.ButtonStyle.danger) async def no_button(self, button:ui.Button, interaction:discord.Interaction): - for button in self.children: - button.disabled = True - message = await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=self) + message = await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=None) await message.delete(delay=5) @app_commands.command()