@@ -113,7 +113,9 @@ class PycordBot(LibPycordBot):
|
||||
return event_stage
|
||||
|
||||
# TODO Document this method
|
||||
async def find_event(self, event_id: str | ObjectId | None = None, event_name: str | None = None):
|
||||
async def find_event(
|
||||
self, event_id: str | ObjectId | None = None, event_name: str | None = None
|
||||
) -> PycordEvent:
|
||||
if event_id is None and event_name is None:
|
||||
raise AttributeError("Either event's ID or name must be provided!")
|
||||
|
||||
|
Reference in New Issue
Block a user