Skip to content

Commit

Permalink
Allow PartialMessages to be in voice channels (which now support text)
Browse files Browse the repository at this point in the history
  • Loading branch information
UP929312 authored and Lulalaby committed Jun 24, 2022
1 parent d40793e commit cf2db7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,7 @@ class PartialMessage(Hashable):
def __init__(self, *, channel: PartialMessageableChannel, id: int):
if channel.type not in (
ChannelType.text,
ChannelType.voice,
ChannelType.news,
ChannelType.private,
ChannelType.news_thread,
Expand Down

0 comments on commit cf2db7e

Please sign in to comment.