File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -249,9 +249,9 @@ def __init__(
249
249
self .loop : asyncio .AbstractEventLoop = (
250
250
asyncio .get_event_loop () if loop is None else loop
251
251
)
252
- self ._listeners : dict [str , list [ tuple [ asyncio . Future , Callable [..., bool ]]]] = (
253
- {}
254
- )
252
+ self ._listeners : dict [
253
+ str , list [ tuple [ asyncio . Future , Callable [..., bool ]]]
254
+ ] = {}
255
255
self .shard_id : int | None = options .get ("shard_id" )
256
256
self .shard_count : int | None = options .get ("shard_count" )
257
257
@@ -1215,7 +1215,7 @@ async def get_or_fetch(
1215
1215
1216
1216
Parameters
1217
1217
----------
1218
- object_type: :class:`VoiceChannel` | :class:`TextChannel` | :class:`ForumChannel` | :class:`StageChannel` | :class:`CategoryChannel` | :class:`Thread` | :class:`User` | :class:`Guild` | :class:`GuildEmoji` | :class:`AppEmoji`
1218
+ object_type: Type[ :class:`VoiceChannel` | :class:`TextChannel` | :class:`ForumChannel` | :class:`StageChannel` | :class:`CategoryChannel` | :class:`Thread` | :class:`User` | :class:`Guild` | :class:`GuildEmoji` | :class:`AppEmoji`]
1219
1219
Type of object to fetch or get.
1220
1220
1221
1221
object_id: :class:`int` | :data:`None`
Original file line number Diff line number Diff line change @@ -1040,7 +1040,7 @@ async def get_or_fetch(
1040
1040
1041
1041
Parameters
1042
1042
----------
1043
- object_type: :class:`VoiceChannel` | :class:`TextChannel` | :class:`ForumChannel` | :class:`StageChannel` | :class:`CategoryChannel` | :class:`Thread` | :class:`Role` | :class:`Member` | :class:`GuildEmoji`
1043
+ object_type: Type[ :class:`VoiceChannel` | :class:`TextChannel` | :class:`ForumChannel` | :class:`StageChannel` | :class:`CategoryChannel` | :class:`Thread` | :class:`Role` | :class:`Member` | :class:`GuildEmoji`]
1044
1044
Type of object to fetch or get.
1045
1045
1046
1046
object_id: :class:`int` | :data:`None`
Original file line number Diff line number Diff line change @@ -641,10 +641,10 @@ async def get_or_fetch(
641
641
642
642
Parameters
643
643
----------
644
- obj: :class:`Guild` | :class:`Client`
644
+ obj: :class:`~discord. Guild` | :class:`~discord. Client`
645
645
The object to operate on.
646
646
647
- object_type: :class:`VoiceChannel` | :class:`TextChannel` | :class:`ForumChannel` | :class:`StageChannel` | :class:`CategoryChannel` | :class:`Thread` | :class:`User` | :class:`Guild` | :class:`Role` | :class:`Member` | :class:`GuildEmoji` | :class:`AppEmoji`
647
+ object_type: Type[ :class:`~discord. VoiceChannel` | :class:`~discord. TextChannel` | :class:`~discord. ForumChannel` | :class:`~discord. StageChannel` | :class:`~discord. CategoryChannel` | :class:`~discord. Thread` | :class:`~discord. User` | :class:`~discord. Guild` | :class:`~discord. Role` | :class:`~discord. Member` | :class:`~discord. GuildEmoji` | :class:`~discord. AppEmoji`]
648
648
Type of object to fetch or get.
649
649
650
650
object_id: :class:`int` | :data:`None`
@@ -655,7 +655,7 @@ async def get_or_fetch(
655
655
656
656
Returns
657
657
-------
658
- :class:`VoiceChannel` | :class:`TextChannel` | :class:`ForumChannel` | :class:`StageChannel` | :class:`CategoryChannel` | :class:`Thread` | :class:`User` | :class:`Guild` | :class:`Role` | :class:`Member` | :class:`GuildEmoji` | :class:`AppEmoji` | :data:`None`
658
+ :class:`~discord. VoiceChannel` | :class:`~discord. TextChannel` | :class:`~discord. ForumChannel` | :class:`~discord. StageChannel` | :class:`~discord. CategoryChannel` | :class:`~discord. Thread` | :class:`~discord. User` | :class:`~discord. Guild` | :class:`~discord. Role` | :class:`~discord. Member` | :class:`~discord. GuildEmoji` | :class:`~discord. AppEmoji` | :data:`None`
659
659
The object if found, or `default` if provided when not found.
660
660
Returns :data:`None` only if `object_id` is :data:`None` and no `default` is given.
661
661
You can’t perform that action at this time.
0 commit comments