mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-03-05 03:02:49 +00:00
Add missing wait_for overloads for soundboard & voice effects
This commit is contained in:
@@ -88,7 +88,7 @@ if TYPE_CHECKING:
|
|||||||
from .abc import Messageable, PrivateChannel, Snowflake, SnowflakeTime
|
from .abc import Messageable, PrivateChannel, Snowflake, SnowflakeTime
|
||||||
from .app_commands import Command, ContextMenu
|
from .app_commands import Command, ContextMenu
|
||||||
from .automod import AutoModAction, AutoModRule
|
from .automod import AutoModAction, AutoModRule
|
||||||
from .channel import DMChannel, GroupChannel
|
from .channel import DMChannel, GroupChannel, VoiceChannelEffect
|
||||||
from .ext.commands import AutoShardedBot, Bot, Context, CommandError
|
from .ext.commands import AutoShardedBot, Bot, Context, CommandError
|
||||||
from .guild import GuildChannel
|
from .guild import GuildChannel
|
||||||
from .integrations import Integration
|
from .integrations import Integration
|
||||||
@@ -1753,6 +1753,38 @@ class Client:
|
|||||||
timeout: Optional[float] = ...,
|
timeout: Optional[float] = ...,
|
||||||
) -> Tuple[ScheduledEvent, User]: ...
|
) -> Tuple[ScheduledEvent, User]: ...
|
||||||
|
|
||||||
|
@overload
|
||||||
|
async def wait_for(
|
||||||
|
self,
|
||||||
|
event: Literal['scheduled_event_update'],
|
||||||
|
/,
|
||||||
|
*,
|
||||||
|
check: Optional[Callable[[ScheduledEvent, ScheduledEvent], bool]] = ...,
|
||||||
|
timeout: Optional[float] = ...,
|
||||||
|
) -> Tuple[ScheduledEvent, ScheduledEvent]: ...
|
||||||
|
|
||||||
|
# Soundboard
|
||||||
|
|
||||||
|
@overload
|
||||||
|
async def wait_for(
|
||||||
|
self,
|
||||||
|
event: Literal['soundboard_sound_create', 'soundboard_sound_delete'],
|
||||||
|
/,
|
||||||
|
*,
|
||||||
|
check: Optional[Callable[[SoundboardSound], bool]] = ...,
|
||||||
|
timeout: Optional[float] = ...,
|
||||||
|
) -> SoundboardSound: ...
|
||||||
|
|
||||||
|
@overload
|
||||||
|
async def wait_for(
|
||||||
|
self,
|
||||||
|
event: Literal['soundboard_sound_update'],
|
||||||
|
/,
|
||||||
|
*,
|
||||||
|
check: Optional[Callable[[SoundboardSound, SoundboardSound], bool]] = ...,
|
||||||
|
timeout: Optional[float] = ...,
|
||||||
|
) -> Tuple[SoundboardSound, SoundboardSound]: ...
|
||||||
|
|
||||||
# Stages
|
# Stages
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
@@ -1859,6 +1891,16 @@ class Client:
|
|||||||
timeout: Optional[float] = ...,
|
timeout: Optional[float] = ...,
|
||||||
) -> Tuple[Member, VoiceState, VoiceState]: ...
|
) -> Tuple[Member, VoiceState, VoiceState]: ...
|
||||||
|
|
||||||
|
@overload
|
||||||
|
async def wait_for(
|
||||||
|
self,
|
||||||
|
event: Literal['voice_channel_effect'],
|
||||||
|
/,
|
||||||
|
*,
|
||||||
|
check: Optional[Callable[[VoiceChannelEffect], bool]] = ...,
|
||||||
|
timeout: Optional[float] = ...,
|
||||||
|
) -> VoiceChannelEffect: ...
|
||||||
|
|
||||||
# Polls
|
# Polls
|
||||||
|
|
||||||
@overload
|
@overload
|
||||||
|
|||||||
Reference in New Issue
Block a user