Always check scheduled_events after scheduled_event update #410
This commit is contained in:
parent
8a76b46165
commit
a2dd447dbd
@ -37,10 +37,10 @@ class BaseOnScheduledEventUpdateEvent(OnScheduledEventUpdateABC):
|
||||
if before.status != after.status and (
|
||||
after.status.value == EventStatus.cancelled.value or after.status.value == EventStatus.completed.value
|
||||
):
|
||||
await self._events.check_and_create_scheduled_events(before.guild)
|
||||
event = self._events.get_active_event(after)
|
||||
if event is None:
|
||||
return
|
||||
self._events.remove_event(event)
|
||||
|
||||
await self._events.check_and_create_scheduled_events(before.guild)
|
||||
self._logger.debug(__name__, f"Module {type(self)} stopped")
|
||||
|
Loading…
Reference in New Issue
Block a user