Allow receiving messages from voice channels

This commit is contained in:
Haruka 2022-03-25 15:24:19 +07:00 committed by GitHub
parent 816d2176e9
commit cda1f0a4ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -571,6 +571,7 @@ class PartialMessage(Hashable):
def __init__(self, *, channel: MessageableChannel, id: int) -> None:
if not isinstance(channel, PartialMessageable) and channel.type not in (
ChannelType.text,
ChannelType.voice,
ChannelType.news,
ChannelType.private,
ChannelType.news_thread,