From 7f6290fbd1ab484d38f1d3603b0f511d2709726a Mon Sep 17 00:00:00 2001 From: esefxdz Date: Tue, 14 Jul 2026 17:12:49 +0300 Subject: [PATCH] delete after command crashed and bot now more dynamic --- cogs/calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/calendar.py b/cogs/calendar.py index b0ee99d..e9ecaa9 100644 --- a/cogs/calendar.py +++ b/cogs/calendar.py @@ -127,7 +127,7 @@ class BookModal(discord.ui.Modal, title="Book an Event"): desc = f" — {description}" if description else "" msg = f"Booked **{date} at {time_str} ({country})**: **{title}**{desc}" - await interaction.response.send_message(msg, ephemeral=True, delete_after=10) + await interaction.response.send_message(msg, ephemeral=True) cog = interaction.client.get_cog("Calendar") if cog and cog._wh: @@ -157,7 +157,7 @@ class Calendar(commands.Cog): self._wh: discord.Webhook | None = None if wh_url: try: - self._wh = discord.Webhook.from_url(wh_url, client=bot) + self._wh = discord.Webhook.from_url(wh_url) except Exception: log.warning("Invalid CALENDAR_WEBHOOK_AGENT, webhook disabled")