Also, eliminate the default 'MISSING' value for both 'object_type' and 'object_id'.
Author: noreply@github.com
Line: 603
|
_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: 603
pycord/discord/utils.py
Lines 600 to 610 in 24a362e