mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
check cancellation status on event update
will this fix the issue I've had all this time???
This commit is contained in:
1 parent
89b0a793e4
commit
331f4bba7e
1 file changed
+3
-1
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user