Fixed scheduled event end update #410
This commit is contained in:
parent
285b8bdbe4
commit
af3084ad36
@ -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