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)
|
||||
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):
|
||||
|
|
Reference in a new issue