Consider news channel type as a TextChannel

This commit is contained in:
Jeremy "EndenDragon" Zhang 2019-03-16 20:02:46 -07:00 committed by Danny
parent 053e2f5b9a
commit 682c0d962f

View File

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