Fixed some event-related issues and guessing
This commit is contained in:
@@ -364,6 +364,12 @@ class PycordUser:
|
||||
cache, current_stage_id=stage_id if isinstance(stage_id, str) else ObjectId(stage_id)
|
||||
)
|
||||
|
||||
# TODO Add documentation
|
||||
async def set_event(self, event_id: str | ObjectId | None, cache: Optional[Cache] = None) -> None:
|
||||
await self._set(
|
||||
cache, current_event_id=event_id if isinstance(event_id, str) else ObjectId(event_id)
|
||||
)
|
||||
|
||||
# TODO Add documentation
|
||||
async def jail(self, cache: Optional[Cache] = None) -> None:
|
||||
await self._set(cache, is_jailed=True)
|
||||
|
Reference in New Issue
Block a user