Implement Messageable for StageChannel

Fix #9248
This commit is contained in:
Rapptz
2023-02-25 03:13:55 -05:00
parent 29461ddb5f
commit da4651c97c
3 changed files with 119 additions and 103 deletions

View File

@ -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