check cancellation status on event update

will this fix the issue I've had all this time???
This commit is contained in:
leander committed 2026-10-24 04:40:43 +02:00
1 parent 89b0a793e4
commit 331f4bba7e
1 file changed
+3 -1
+3 -1
View File
@@ -138,7 +138,9 @@ class WebsiteEvents(commands.Cog):
# As all events have the same id up until around 48 hours before its start time # As all events have the same id up until around 48 hours before its start time
# I have not looked into this though # I have not looked into this though
await self.delete_event(before) await self.delete_event(before)
await self.create_event(after)
if after.status == discord.EventStatus.cancelled:
await self.delete_event(after)
else: else:
await self.create_event(after) await self.create_event(after)