fix: reverted previous commit
This commit is contained in:
parent
4fab6745e2
commit
aaa668e5ef
1 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||||
|
|
Reference in a new issue