Skip to content

In version 3.0, remove the 'attr' and 'id' arguments. #2964

@github-actions

Description

@github-actions

Also, eliminate the default 'MISSING' value for both 'object_type' and 'object_id'.

Author: [email protected]
Line: 596

pycord/discord/utils.py

Lines 593 to 603 in b9bfe00

_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 = ...,

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions