From c6d09a8bfa5fd91f716033de153703200f96edfd Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 4 May 2021 08:37:26 -0400 Subject: [PATCH] Add Thread.is_news() --- discord/threads.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/threads.py b/discord/threads.py index 3efc4db03..ab022eeba 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -208,6 +208,10 @@ class Thread(Messageable, Hashable): """:class:`bool`: Whether the thread is a private thread.""" return self._type is ChannelType.private_thread + def is_news(self) -> bool: + """:class:`bool`: Whether the thread is a news thread.""" + return self._type is ChannelType.news_thread + async def edit( self, *,