fix: reverted previous commit

This commit is contained in:
Seaswimmer 2023-07-15 23:12:33 -04:00
parent 4fab6745e2
commit aaa668e5ef
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

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