mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
@ -737,6 +737,7 @@ class PartialMessage(Hashable):
|
||||
if not isinstance(channel, PartialMessageable) and channel.type not in (
|
||||
ChannelType.text,
|
||||
ChannelType.voice,
|
||||
ChannelType.stage_voice,
|
||||
ChannelType.news,
|
||||
ChannelType.private,
|
||||
ChannelType.news_thread,
|
||||
@ -744,7 +745,7 @@ class PartialMessage(Hashable):
|
||||
ChannelType.private_thread,
|
||||
):
|
||||
raise TypeError(
|
||||
f'expected PartialMessageable, TextChannel, VoiceChannel, DMChannel or Thread not {type(channel)!r}'
|
||||
f'expected PartialMessageable, TextChannel, StageChannel, VoiceChannel, DMChannel or Thread not {type(channel)!r}'
|
||||
)
|
||||
|
||||
self.channel: MessageableChannel = channel
|
||||
|
Reference in New Issue
Block a user