Handle type updates in TextChannel._update for news channels.

This commit is contained in:
Rapptz 2019-03-12 23:13:22 -04:00
parent e1d9f8f59f
commit a70db36cfc

View File

@ -106,6 +106,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
self.nsfw = data.get('nsfw', False)
# Does this need coercion into `int`? No idea yet.
self.slowmode_delay = data.get('rate_limit_per_user', 0)
self._type = data.get('type', self._type)
self._fill_overwrites(data)
async def _get_channel(self):