Compare commits
2 commits
4fab6745e2
...
4ba8e656ab
Author | SHA1 | Date | |
---|---|---|---|
4ba8e656ab | |||
aaa668e5ef |
1 changed files with 2 additions and 4 deletions
|
@ -165,10 +165,8 @@ 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
|
await message.delete(delay=3)
|
||||||
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):
|
||||||
|
|
Reference in a new issue