mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Consider news channel type as a TextChannel
This commit is contained in:
parent
053e2f5b9a
commit
682c0d962f
@ -261,7 +261,7 @@ class Guild(Hashable):
|
||||
if 'channels' in data:
|
||||
channels = data['channels']
|
||||
for c in channels:
|
||||
if c['type'] == ChannelType.text.value:
|
||||
if c['type'] == ChannelType.text.value or c['type'] == ChannelType.news.value:
|
||||
self._add_channel(TextChannel(guild=self, data=c, state=self._state))
|
||||
elif c['type'] == ChannelType.voice.value:
|
||||
self._add_channel(VoiceChannel(guild=self, data=c, state=self._state))
|
||||
|
Loading…
x
Reference in New Issue
Block a user