mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-21 10:26:47 +00:00
Allow receiving messages from voice channels
This commit is contained in:
parent
816d2176e9
commit
cda1f0a4ef
@ -571,6 +571,7 @@ class PartialMessage(Hashable):
|
|||||||
def __init__(self, *, channel: MessageableChannel, id: int) -> None:
|
def __init__(self, *, channel: MessageableChannel, id: int) -> None:
|
||||||
if not isinstance(channel, PartialMessageable) and channel.type not in (
|
if not isinstance(channel, PartialMessageable) and channel.type not in (
|
||||||
ChannelType.text,
|
ChannelType.text,
|
||||||
|
ChannelType.voice,
|
||||||
ChannelType.news,
|
ChannelType.news,
|
||||||
ChannelType.private,
|
ChannelType.private,
|
||||||
ChannelType.news_thread,
|
ChannelType.news_thread,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user