Compare commits

..

No commits in common. "4ba8e656ab0857cd63342c0753e9d91b92ba03d0" and "4fab6745e2a73d8abc907b0fa54edc50b49b36a6" have entirely different histories.

View file

@ -165,8 +165,10 @@ 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):
message = await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=None) for button in self.children:
await message.delete(delay=3) button.disabled = True
message = await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=self)
await message.delete(delay=5)
@app_commands.command() @app_commands.command()
async def test(self, interaction: discord.Interaction, endpoint: str = None): async def test(self, interaction: discord.Interaction, endpoint: str = None):