diff options
| author | Rapptz <[email protected]> | 2019-03-12 23:13:22 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-12 23:13:22 -0400 |
| commit | a70db36cfc582f5f283a4036fd3f57eab2234a16 (patch) | |
| tree | 5f39b7b32d298783c58a83fbac79e53d68ab0731 | |
| parent | [commands] Support staticmethod listeners and disallow them in commands (diff) | |
| download | discord.py-a70db36cfc582f5f283a4036fd3f57eab2234a16.tar.xz discord.py-a70db36cfc582f5f283a4036fd3f57eab2234a16.zip | |
Handle type updates in TextChannel._update for news channels.
| -rw-r--r-- | discord/channel.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/channel.py b/discord/channel.py index b1446c5b..44b7f2eb 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): |