Skip to content

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

@github-actions

Description

@github-actions

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

_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

No type
No fields configured for issues without a type.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions