From aaa668e5efef037850d7296d8d2bfc04557ece26 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 15 Jul 2023 23:12:33 -0400 Subject: [PATCH] fix: reverted previous commit --- pterodactyl/ptero.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()