Compare commits

...

2 commits

View file

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