diff options
| author | Alex Liu <[email protected]> | 2021-07-01 17:27:39 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-01 20:27:39 -0400 |
| commit | 64b48431b46d4b498da9a3743a79f9c0702b09ae (patch) | |
| tree | fc70e4bb9888c241392c45ea695c021fdc15bdef /discord | |
| parent | Add Select to list of types in Item's docstring (diff) | |
| download | discord.py-64b48431b46d4b498da9a3743a79f9c0702b09ae.tar.xz discord.py-64b48431b46d4b498da9a3743a79f9c0702b09ae.zip | |
Add type property to thread channels
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/threads.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/threads.py b/discord/threads.py index a686fab1..f9120d44 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -191,6 +191,10 @@ class Thread(Messageable, Hashable): self._unroll_metadata(data['thread_metadata']) except KeyError: pass + @property + def type(self) -> ChannelType: + """:class:`ChannelType`: The channel's Discord type.""" + return self._type @property def parent(self) -> Optional[TextChannel]: |