From a70db36cfc582f5f283a4036fd3f57eab2234a16 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 12 Mar 2019 23:13:22 -0400 Subject: [PATCH] Handle type updates in TextChannel._update for news channels. --- discord/channel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/channel.py b/discord/channel.py index b1446c5b5..44b7f2eb1 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -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):