staging #447

Merged
edraft merged 56 commits from staging into master 2023-12-02 19:34:25 +01:00
Showing only changes of commit a2dd447dbd - Show all commits

View File

@ -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")