misc: reduced delay on message.delete in no_button (update)
This commit is contained in:
parent
aaa668e5ef
commit
4ba8e656ab
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,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):
|
||||||
message = await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=None)
|
message = await self.passed_info['interaction'].edit_original_response(content=f"Command cancelled.", view=None)
|
||||||
await message.delete(delay=5)
|
await message.delete(delay=3)
|
||||||
|
|
||||||
@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