From 64b48431b46d4b498da9a3743a79f9c0702b09ae Mon Sep 17 00:00:00 2001 From: Alex Liu <30390986+applebee1558@users.noreply.github.com> Date: Thu, 1 Jul 2021 17:27:39 -0700 Subject: [PATCH] Add type property to thread channels --- discord/threads.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/threads.py b/discord/threads.py index a686fab14..f9120d444 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]: