Browse Source

Fix wait_for overloads

pull/10102/head
Soheab 2 months ago
committed by GitHub
parent
commit
7f511360b8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 254
      discord/client.py

254
discord/client.py

@ -1213,8 +1213,8 @@ class Client:
event: Literal['raw_app_command_permissions_update'], event: Literal['raw_app_command_permissions_update'],
/, /,
*, *,
check: Optional[Callable[[RawAppCommandPermissionsUpdateEvent], bool]], check: Optional[Callable[[RawAppCommandPermissionsUpdateEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawAppCommandPermissionsUpdateEvent: ) -> RawAppCommandPermissionsUpdateEvent:
... ...
@ -1224,8 +1224,8 @@ class Client:
event: Literal['app_command_completion'], event: Literal['app_command_completion'],
/, /,
*, *,
check: Optional[Callable[[Interaction[Self], Union[Command[Any, ..., Any], ContextMenu]], bool]], check: Optional[Callable[[Interaction[Self], Union[Command[Any, ..., Any], ContextMenu]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Interaction[Self], Union[Command[Any, ..., Any], ContextMenu]]: ) -> Tuple[Interaction[Self], Union[Command[Any, ..., Any], ContextMenu]]:
... ...
@ -1237,8 +1237,8 @@ class Client:
event: Literal['automod_rule_create', 'automod_rule_update', 'automod_rule_delete'], event: Literal['automod_rule_create', 'automod_rule_update', 'automod_rule_delete'],
/, /,
*, *,
check: Optional[Callable[[AutoModRule], bool]], check: Optional[Callable[[AutoModRule], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> AutoModRule: ) -> AutoModRule:
... ...
@ -1248,8 +1248,8 @@ class Client:
event: Literal['automod_action'], event: Literal['automod_action'],
/, /,
*, *,
check: Optional[Callable[[AutoModAction], bool]], check: Optional[Callable[[AutoModAction], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> AutoModAction: ) -> AutoModAction:
... ...
@ -1261,8 +1261,8 @@ class Client:
event: Literal['private_channel_update'], event: Literal['private_channel_update'],
/, /,
*, *,
check: Optional[Callable[[GroupChannel, GroupChannel], bool]], check: Optional[Callable[[GroupChannel, GroupChannel], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[GroupChannel, GroupChannel]: ) -> Tuple[GroupChannel, GroupChannel]:
... ...
@ -1272,8 +1272,8 @@ class Client:
event: Literal['private_channel_pins_update'], event: Literal['private_channel_pins_update'],
/, /,
*, *,
check: Optional[Callable[[PrivateChannel, datetime.datetime], bool]], check: Optional[Callable[[PrivateChannel, datetime.datetime], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[PrivateChannel, datetime.datetime]: ) -> Tuple[PrivateChannel, datetime.datetime]:
... ...
@ -1283,8 +1283,8 @@ class Client:
event: Literal['guild_channel_delete', 'guild_channel_create'], event: Literal['guild_channel_delete', 'guild_channel_create'],
/, /,
*, *,
check: Optional[Callable[[GuildChannel], bool]], check: Optional[Callable[[GuildChannel], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> GuildChannel: ) -> GuildChannel:
... ...
@ -1294,8 +1294,8 @@ class Client:
event: Literal['guild_channel_update'], event: Literal['guild_channel_update'],
/, /,
*, *,
check: Optional[Callable[[GuildChannel, GuildChannel], bool]], check: Optional[Callable[[GuildChannel, GuildChannel], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[GuildChannel, GuildChannel]: ) -> Tuple[GuildChannel, GuildChannel]:
... ...
@ -1311,7 +1311,7 @@ class Client:
bool, bool,
] ]
], ],
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Union[GuildChannel, Thread], Optional[datetime.datetime]]: ) -> Tuple[Union[GuildChannel, Thread], Optional[datetime.datetime]]:
... ...
@ -1321,8 +1321,8 @@ class Client:
event: Literal['typing'], event: Literal['typing'],
/, /,
*, *,
check: Optional[Callable[[Messageable, Union[User, Member], datetime.datetime], bool]], check: Optional[Callable[[Messageable, Union[User, Member], datetime.datetime], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Messageable, Union[User, Member], datetime.datetime]: ) -> Tuple[Messageable, Union[User, Member], datetime.datetime]:
... ...
@ -1332,8 +1332,8 @@ class Client:
event: Literal['raw_typing'], event: Literal['raw_typing'],
/, /,
*, *,
check: Optional[Callable[[RawTypingEvent], bool]], check: Optional[Callable[[RawTypingEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawTypingEvent: ) -> RawTypingEvent:
... ...
@ -1345,8 +1345,8 @@ class Client:
event: Literal['connect', 'disconnect', 'ready', 'resumed'], event: Literal['connect', 'disconnect', 'ready', 'resumed'],
/, /,
*, *,
check: Optional[Callable[[], bool]], check: Optional[Callable[[], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> None: ) -> None:
... ...
@ -1356,8 +1356,8 @@ class Client:
event: Literal['shard_connect', 'shard_disconnect', 'shard_ready', 'shard_resumed'], event: Literal['shard_connect', 'shard_disconnect', 'shard_ready', 'shard_resumed'],
/, /,
*, *,
check: Optional[Callable[[int], bool]], check: Optional[Callable[[int], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> int: ) -> int:
... ...
@ -1367,8 +1367,8 @@ class Client:
event: Literal['socket_event_type', 'socket_raw_receive'], event: Literal['socket_event_type', 'socket_raw_receive'],
/, /,
*, *,
check: Optional[Callable[[str], bool]], check: Optional[Callable[[str], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> str: ) -> str:
... ...
@ -1378,8 +1378,8 @@ class Client:
event: Literal['socket_raw_send'], event: Literal['socket_raw_send'],
/, /,
*, *,
check: Optional[Callable[[Union[str, bytes]], bool]], check: Optional[Callable[[Union[str, bytes]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Union[str, bytes]: ) -> Union[str, bytes]:
... ...
@ -1390,8 +1390,8 @@ class Client:
event: Literal['entitlement_create', 'entitlement_update', 'entitlement_delete'], event: Literal['entitlement_create', 'entitlement_update', 'entitlement_delete'],
/, /,
*, *,
check: Optional[Callable[[Entitlement], bool]], check: Optional[Callable[[Entitlement], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Entitlement: ) -> Entitlement:
... ...
@ -1408,8 +1408,8 @@ class Client:
], ],
/, /,
*, *,
check: Optional[Callable[[Guild], bool]], check: Optional[Callable[[Guild], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Guild: ) -> Guild:
... ...
@ -1419,8 +1419,8 @@ class Client:
event: Literal['guild_update'], event: Literal['guild_update'],
/, /,
*, *,
check: Optional[Callable[[Guild, Guild], bool]], check: Optional[Callable[[Guild, Guild], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Guild, Guild]: ) -> Tuple[Guild, Guild]:
... ...
@ -1430,8 +1430,8 @@ class Client:
event: Literal['guild_emojis_update'], event: Literal['guild_emojis_update'],
/, /,
*, *,
check: Optional[Callable[[Guild, Sequence[Emoji], Sequence[Emoji]], bool]], check: Optional[Callable[[Guild, Sequence[Emoji], Sequence[Emoji]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Guild, Sequence[Emoji], Sequence[Emoji]]: ) -> Tuple[Guild, Sequence[Emoji], Sequence[Emoji]]:
... ...
@ -1441,8 +1441,8 @@ class Client:
event: Literal['guild_stickers_update'], event: Literal['guild_stickers_update'],
/, /,
*, *,
check: Optional[Callable[[Guild, Sequence[GuildSticker], Sequence[GuildSticker]], bool]], check: Optional[Callable[[Guild, Sequence[GuildSticker], Sequence[GuildSticker]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Guild, Sequence[GuildSticker], Sequence[GuildSticker]]: ) -> Tuple[Guild, Sequence[GuildSticker], Sequence[GuildSticker]]:
... ...
@ -1452,8 +1452,8 @@ class Client:
event: Literal['invite_create', 'invite_delete'], event: Literal['invite_create', 'invite_delete'],
/, /,
*, *,
check: Optional[Callable[[Invite], bool]], check: Optional[Callable[[Invite], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Invite: ) -> Invite:
... ...
@ -1463,8 +1463,8 @@ class Client:
event: Literal['audit_log_entry_create'], event: Literal['audit_log_entry_create'],
/, /,
*, *,
check: Optional[Callable[[AuditLogEntry], bool]], check: Optional[Callable[[AuditLogEntry], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> AuditLogEntry: ) -> AuditLogEntry:
... ...
@ -1476,8 +1476,8 @@ class Client:
event: Literal['integration_create', 'integration_update'], event: Literal['integration_create', 'integration_update'],
/, /,
*, *,
check: Optional[Callable[[Integration], bool]], check: Optional[Callable[[Integration], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Integration: ) -> Integration:
... ...
@ -1487,8 +1487,8 @@ class Client:
event: Literal['guild_integrations_update'], event: Literal['guild_integrations_update'],
/, /,
*, *,
check: Optional[Callable[[Guild], bool]], check: Optional[Callable[[Guild], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Guild: ) -> Guild:
... ...
@ -1498,8 +1498,8 @@ class Client:
event: Literal['webhooks_update'], event: Literal['webhooks_update'],
/, /,
*, *,
check: Optional[Callable[[GuildChannel], bool]], check: Optional[Callable[[GuildChannel], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> GuildChannel: ) -> GuildChannel:
... ...
@ -1509,8 +1509,8 @@ class Client:
event: Literal['raw_integration_delete'], event: Literal['raw_integration_delete'],
/, /,
*, *,
check: Optional[Callable[[RawIntegrationDeleteEvent], bool]], check: Optional[Callable[[RawIntegrationDeleteEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawIntegrationDeleteEvent: ) -> RawIntegrationDeleteEvent:
... ...
@ -1522,8 +1522,8 @@ class Client:
event: Literal['interaction'], event: Literal['interaction'],
/, /,
*, *,
check: Optional[Callable[[Interaction[Self]], bool]], check: Optional[Callable[[Interaction[Self]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Interaction[Self]: ) -> Interaction[Self]:
... ...
@ -1535,8 +1535,8 @@ class Client:
event: Literal['member_join', 'member_remove'], event: Literal['member_join', 'member_remove'],
/, /,
*, *,
check: Optional[Callable[[Member], bool]], check: Optional[Callable[[Member], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Member: ) -> Member:
... ...
@ -1546,8 +1546,8 @@ class Client:
event: Literal['raw_member_remove'], event: Literal['raw_member_remove'],
/, /,
*, *,
check: Optional[Callable[[RawMemberRemoveEvent], bool]], check: Optional[Callable[[RawMemberRemoveEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawMemberRemoveEvent: ) -> RawMemberRemoveEvent:
... ...
@ -1557,8 +1557,8 @@ class Client:
event: Literal['member_update', 'presence_update'], event: Literal['member_update', 'presence_update'],
/, /,
*, *,
check: Optional[Callable[[Member, Member], bool]], check: Optional[Callable[[Member, Member], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Member, Member]: ) -> Tuple[Member, Member]:
... ...
@ -1568,8 +1568,8 @@ class Client:
event: Literal['user_update'], event: Literal['user_update'],
/, /,
*, *,
check: Optional[Callable[[User, User], bool]], check: Optional[Callable[[User, User], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[User, User]: ) -> Tuple[User, User]:
... ...
@ -1579,8 +1579,8 @@ class Client:
event: Literal['member_ban'], event: Literal['member_ban'],
/, /,
*, *,
check: Optional[Callable[[Guild, Union[User, Member]], bool]], check: Optional[Callable[[Guild, Union[User, Member]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Guild, Union[User, Member]]: ) -> Tuple[Guild, Union[User, Member]]:
... ...
@ -1590,8 +1590,8 @@ class Client:
event: Literal['member_unban'], event: Literal['member_unban'],
/, /,
*, *,
check: Optional[Callable[[Guild, User], bool]], check: Optional[Callable[[Guild, User], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Guild, User]: ) -> Tuple[Guild, User]:
... ...
@ -1603,8 +1603,8 @@ class Client:
event: Literal['message', 'message_delete'], event: Literal['message', 'message_delete'],
/, /,
*, *,
check: Optional[Callable[[Message], bool]], check: Optional[Callable[[Message], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Message: ) -> Message:
... ...
@ -1614,8 +1614,8 @@ class Client:
event: Literal['message_edit'], event: Literal['message_edit'],
/, /,
*, *,
check: Optional[Callable[[Message, Message], bool]], check: Optional[Callable[[Message, Message], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Message, Message]: ) -> Tuple[Message, Message]:
... ...
@ -1625,8 +1625,8 @@ class Client:
event: Literal['bulk_message_delete'], event: Literal['bulk_message_delete'],
/, /,
*, *,
check: Optional[Callable[[List[Message]], bool]], check: Optional[Callable[[List[Message]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> List[Message]: ) -> List[Message]:
... ...
@ -1636,8 +1636,8 @@ class Client:
event: Literal['raw_message_edit'], event: Literal['raw_message_edit'],
/, /,
*, *,
check: Optional[Callable[[RawMessageUpdateEvent], bool]], check: Optional[Callable[[RawMessageUpdateEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawMessageUpdateEvent: ) -> RawMessageUpdateEvent:
... ...
@ -1647,8 +1647,8 @@ class Client:
event: Literal['raw_message_delete'], event: Literal['raw_message_delete'],
/, /,
*, *,
check: Optional[Callable[[RawMessageDeleteEvent], bool]], check: Optional[Callable[[RawMessageDeleteEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawMessageDeleteEvent: ) -> RawMessageDeleteEvent:
... ...
@ -1658,8 +1658,8 @@ class Client:
event: Literal['raw_bulk_message_delete'], event: Literal['raw_bulk_message_delete'],
/, /,
*, *,
check: Optional[Callable[[RawBulkMessageDeleteEvent], bool]], check: Optional[Callable[[RawBulkMessageDeleteEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawBulkMessageDeleteEvent: ) -> RawBulkMessageDeleteEvent:
... ...
@ -1671,8 +1671,8 @@ class Client:
event: Literal['reaction_add', 'reaction_remove'], event: Literal['reaction_add', 'reaction_remove'],
/, /,
*, *,
check: Optional[Callable[[Reaction, Union[Member, User]], bool]], check: Optional[Callable[[Reaction, Union[Member, User]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Reaction, Union[Member, User]]: ) -> Tuple[Reaction, Union[Member, User]]:
... ...
@ -1682,8 +1682,8 @@ class Client:
event: Literal['reaction_clear'], event: Literal['reaction_clear'],
/, /,
*, *,
check: Optional[Callable[[Message, List[Reaction]], bool]], check: Optional[Callable[[Message, List[Reaction]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Message, List[Reaction]]: ) -> Tuple[Message, List[Reaction]]:
... ...
@ -1693,8 +1693,8 @@ class Client:
event: Literal['reaction_clear_emoji'], event: Literal['reaction_clear_emoji'],
/, /,
*, *,
check: Optional[Callable[[Reaction], bool]], check: Optional[Callable[[Reaction], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Reaction: ) -> Reaction:
... ...
@ -1704,8 +1704,8 @@ class Client:
event: Literal['raw_reaction_add', 'raw_reaction_remove'], event: Literal['raw_reaction_add', 'raw_reaction_remove'],
/, /,
*, *,
check: Optional[Callable[[RawReactionActionEvent], bool]], check: Optional[Callable[[RawReactionActionEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawReactionActionEvent: ) -> RawReactionActionEvent:
... ...
@ -1715,8 +1715,8 @@ class Client:
event: Literal['raw_reaction_clear'], event: Literal['raw_reaction_clear'],
/, /,
*, *,
check: Optional[Callable[[RawReactionClearEvent], bool]], check: Optional[Callable[[RawReactionClearEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawReactionClearEvent: ) -> RawReactionClearEvent:
... ...
@ -1726,8 +1726,8 @@ class Client:
event: Literal['raw_reaction_clear_emoji'], event: Literal['raw_reaction_clear_emoji'],
/, /,
*, *,
check: Optional[Callable[[RawReactionClearEmojiEvent], bool]], check: Optional[Callable[[RawReactionClearEmojiEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawReactionClearEmojiEvent: ) -> RawReactionClearEmojiEvent:
... ...
@ -1739,8 +1739,8 @@ class Client:
event: Literal['guild_role_create', 'guild_role_delete'], event: Literal['guild_role_create', 'guild_role_delete'],
/, /,
*, *,
check: Optional[Callable[[Role], bool]], check: Optional[Callable[[Role], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Role: ) -> Role:
... ...
@ -1750,8 +1750,8 @@ class Client:
event: Literal['guild_role_update'], event: Literal['guild_role_update'],
/, /,
*, *,
check: Optional[Callable[[Role, Role], bool]], check: Optional[Callable[[Role, Role], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Role, Role]: ) -> Tuple[Role, Role]:
... ...
@ -1763,8 +1763,8 @@ class Client:
event: Literal['scheduled_event_create', 'scheduled_event_delete'], event: Literal['scheduled_event_create', 'scheduled_event_delete'],
/, /,
*, *,
check: Optional[Callable[[ScheduledEvent], bool]], check: Optional[Callable[[ScheduledEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> ScheduledEvent: ) -> ScheduledEvent:
... ...
@ -1774,8 +1774,8 @@ class Client:
event: Literal['scheduled_event_user_add', 'scheduled_event_user_remove'], event: Literal['scheduled_event_user_add', 'scheduled_event_user_remove'],
/, /,
*, *,
check: Optional[Callable[[ScheduledEvent, User], bool]], check: Optional[Callable[[ScheduledEvent, User], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[ScheduledEvent, User]: ) -> Tuple[ScheduledEvent, User]:
... ...
@ -1787,8 +1787,8 @@ class Client:
event: Literal['stage_instance_create', 'stage_instance_delete'], event: Literal['stage_instance_create', 'stage_instance_delete'],
/, /,
*, *,
check: Optional[Callable[[StageInstance], bool]], check: Optional[Callable[[StageInstance], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> StageInstance: ) -> StageInstance:
... ...
@ -1798,8 +1798,8 @@ class Client:
event: Literal['stage_instance_update'], event: Literal['stage_instance_update'],
/, /,
*, *,
check: Optional[Callable[[StageInstance, StageInstance], bool]], check: Optional[Callable[[StageInstance, StageInstance], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Coroutine[Any, Any, Tuple[StageInstance, StageInstance]]: ) -> Coroutine[Any, Any, Tuple[StageInstance, StageInstance]]:
... ...
@ -1810,8 +1810,8 @@ class Client:
event: Literal['subscription_create', 'subscription_update', 'subscription_delete'], event: Literal['subscription_create', 'subscription_update', 'subscription_delete'],
/, /,
*, *,
check: Optional[Callable[[Subscription], bool]], check: Optional[Callable[[Subscription], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Subscription: ) -> Subscription:
... ...
@ -1822,8 +1822,8 @@ class Client:
event: Literal['thread_create', 'thread_join', 'thread_remove', 'thread_delete'], event: Literal['thread_create', 'thread_join', 'thread_remove', 'thread_delete'],
/, /,
*, *,
check: Optional[Callable[[Thread], bool]], check: Optional[Callable[[Thread], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Thread: ) -> Thread:
... ...
@ -1833,8 +1833,8 @@ class Client:
event: Literal['thread_update'], event: Literal['thread_update'],
/, /,
*, *,
check: Optional[Callable[[Thread, Thread], bool]], check: Optional[Callable[[Thread, Thread], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Thread, Thread]: ) -> Tuple[Thread, Thread]:
... ...
@ -1844,8 +1844,8 @@ class Client:
event: Literal['raw_thread_update'], event: Literal['raw_thread_update'],
/, /,
*, *,
check: Optional[Callable[[RawThreadUpdateEvent], bool]], check: Optional[Callable[[RawThreadUpdateEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawThreadUpdateEvent: ) -> RawThreadUpdateEvent:
... ...
@ -1855,8 +1855,8 @@ class Client:
event: Literal['raw_thread_delete'], event: Literal['raw_thread_delete'],
/, /,
*, *,
check: Optional[Callable[[RawThreadDeleteEvent], bool]], check: Optional[Callable[[RawThreadDeleteEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawThreadDeleteEvent: ) -> RawThreadDeleteEvent:
... ...
@ -1866,8 +1866,8 @@ class Client:
event: Literal['thread_member_join', 'thread_member_remove'], event: Literal['thread_member_join', 'thread_member_remove'],
/, /,
*, *,
check: Optional[Callable[[ThreadMember], bool]], check: Optional[Callable[[ThreadMember], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> ThreadMember: ) -> ThreadMember:
... ...
@ -1877,8 +1877,8 @@ class Client:
event: Literal['raw_thread_member_remove'], event: Literal['raw_thread_member_remove'],
/, /,
*, *,
check: Optional[Callable[[RawThreadMembersUpdate], bool]], check: Optional[Callable[[RawThreadMembersUpdate], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawThreadMembersUpdate: ) -> RawThreadMembersUpdate:
... ...
@ -1890,8 +1890,8 @@ class Client:
event: Literal['voice_state_update'], event: Literal['voice_state_update'],
/, /,
*, *,
check: Optional[Callable[[Member, VoiceState, VoiceState], bool]], check: Optional[Callable[[Member, VoiceState, VoiceState], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Member, VoiceState, VoiceState]: ) -> Tuple[Member, VoiceState, VoiceState]:
... ...
@ -1903,8 +1903,8 @@ class Client:
event: Literal['poll_vote_add', 'poll_vote_remove'], event: Literal['poll_vote_add', 'poll_vote_remove'],
/, /,
*, *,
check: Optional[Callable[[Union[User, Member], PollAnswer], bool]] = None, check: Optional[Callable[[Union[User, Member], PollAnswer], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Union[User, Member], PollAnswer]: ) -> Tuple[Union[User, Member], PollAnswer]:
... ...
@ -1914,8 +1914,8 @@ class Client:
event: Literal['raw_poll_vote_add', 'raw_poll_vote_remove'], event: Literal['raw_poll_vote_add', 'raw_poll_vote_remove'],
/, /,
*, *,
check: Optional[Callable[[RawPollVoteActionEvent], bool]] = None, check: Optional[Callable[[RawPollVoteActionEvent], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> RawPollVoteActionEvent: ) -> RawPollVoteActionEvent:
... ...
@ -1927,8 +1927,8 @@ class Client:
event: Literal["command", "command_completion"], event: Literal["command", "command_completion"],
/, /,
*, *,
check: Optional[Callable[[Context[Any]], bool]] = None, check: Optional[Callable[[Context[Any]], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Context[Any]: ) -> Context[Any]:
... ...
@ -1938,8 +1938,8 @@ class Client:
event: Literal["command_error"], event: Literal["command_error"],
/, /,
*, *,
check: Optional[Callable[[Context[Any], CommandError], bool]] = None, check: Optional[Callable[[Context[Any], CommandError], bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Tuple[Context[Any], CommandError]: ) -> Tuple[Context[Any], CommandError]:
... ...
@ -1949,8 +1949,8 @@ class Client:
event: str, event: str,
/, /,
*, *,
check: Optional[Callable[..., bool]] = None, check: Optional[Callable[..., bool]] = ...,
timeout: Optional[float] = None, timeout: Optional[float] = ...,
) -> Any: ) -> Any:
... ...

Loading…
Cancel
Save