another delete code

This commit is contained in:
esef committed 2026-07-13 18:48:57 +03:00
1 parent 3ef326767a
commit 75948e055d
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ class BookButton(discord.ui.View):
def __init__(self):
super().__init__(timeout=300)
@discord.ui.button(label="Book an Event", style=discord.ButtonStyle.primary, emoji="📅")
@discord.ui.button(label="Book an Event", style=discord.ButtonStyle.primary, emoji="📅", delete_after= 120)
async def open_modal(self, interaction: discord.Interaction, _button):
await interaction.response.send_modal(BookModal())