misc: reduced delay on message.delete in no_button (update)

This commit is contained in:
Seaswimmer 2023-07-15 23:12:47 -04:00
parent aaa668e5ef
commit 4ba8e656ab
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -166,7 +166,7 @@ class Pterodactyl(commands.Cog):
@ui.button(label="No", style=discord.ButtonStyle.danger)
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)
await message.delete(delay=5)
await message.delete(delay=3)
@app_commands.command()
async def test(self, interaction: discord.Interaction, endpoint: str = None):