Also, eliminate the default 'MISSING' value for both 'object_type' and 'object_id'.
Author: noreply@github.com
Line: 596
|
_Fetcher = Callable[[Any, int], Awaitable[Any]] |
|
|
|
|
|
# TODO: In version 3.0, remove the 'attr' and 'id' arguments. |
|
# Also, eliminate the default 'MISSING' value for both 'object_type' and 'object_id'. |
|
@overload |
|
async def get_or_fetch( |
|
obj: Guild | Client, |
|
object_type: type[_FETCHABLE], |
|
object_id: Literal[None], |
|
default: _D = ..., |
Also, eliminate the default 'MISSING' value for both 'object_type' and 'object_id'.
Author: noreply@github.com
Line: 596
pycord/discord/utils.py
Lines 593 to 603 in b9bfe00