Fixed event not being set as ended correctly
This commit is contained in:
@@ -268,6 +268,10 @@ class PycordEvent:
|
||||
async def cancel(self, cache: Optional[Cache] = None):
|
||||
await self._set(cache, is_cancelled=True)
|
||||
|
||||
# # TODO Add documentation
|
||||
async def end(self, cache: Optional[Cache] = None) -> None:
|
||||
await self._set(cache, ended=datetime.now(tz=ZoneInfo("UTC")))
|
||||
|
||||
async def _update_event_stage_order(
|
||||
self,
|
||||
bot: Any,
|
||||
@@ -325,7 +329,7 @@ class PycordEvent:
|
||||
# # TODO Add documentation
|
||||
# def get_localized_start_date(self, tz: str | timezone | ZoneInfo) -> datetime:
|
||||
# return self.starts.replace(tzinfo=tz)
|
||||
#
|
||||
# # TODO Add documentation
|
||||
|
||||
# TODO Add documentation
|
||||
# def get_localized_end_date(self, tz: str | timezone | ZoneInfo) -> datetime:
|
||||
# return self.ends.replace(tzinfo=tz)
|
||||
|
Reference in New Issue
Block a user