mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
@ -83,7 +83,15 @@ if TYPE_CHECKING:
|
||||
from .channel import CategoryChannel
|
||||
from .embeds import Embed
|
||||
from .message import Message, MessageReference, PartialMessage
|
||||
from .channel import TextChannel, DMChannel, GroupChannel, PartialMessageable, VoiceChannel
|
||||
from .channel import (
|
||||
TextChannel,
|
||||
DMChannel,
|
||||
GroupChannel,
|
||||
PartialMessageable,
|
||||
VocalGuildChannel,
|
||||
VoiceChannel,
|
||||
StageChannel,
|
||||
)
|
||||
from .threads import Thread
|
||||
from .enums import InviteTarget
|
||||
from .ui.view import View
|
||||
@ -97,7 +105,7 @@ if TYPE_CHECKING:
|
||||
SnowflakeList,
|
||||
)
|
||||
|
||||
PartialMessageableChannel = Union[TextChannel, VoiceChannel, Thread, DMChannel, PartialMessageable]
|
||||
PartialMessageableChannel = Union[TextChannel, VoiceChannel, StageChannel, Thread, DMChannel, PartialMessageable]
|
||||
MessageableChannel = Union[PartialMessageableChannel, GroupChannel]
|
||||
SnowflakeTime = Union["Snowflake", datetime]
|
||||
|
||||
@ -118,7 +126,7 @@ async def _single_delete_strategy(messages: Iterable[Message], *, reason: Option
|
||||
|
||||
|
||||
async def _purge_helper(
|
||||
channel: Union[Thread, TextChannel, VoiceChannel],
|
||||
channel: Union[Thread, TextChannel, VocalGuildChannel],
|
||||
*,
|
||||
limit: Optional[int] = 100,
|
||||
check: Callable[[Message], bool] = MISSING,
|
||||
|
Reference in New Issue
Block a user