aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-05-04 08:37:26 -0400
committerRapptz <[email protected]>2021-06-08 07:26:22 -0400
commitc6d09a8bfa5fd91f716033de153703200f96edfd (patch)
tree036eda15d6d45795303a7e6a6cbf00d55f594826
parentBump gateway API to v9 (diff)
downloaddiscord.py-c6d09a8bfa5fd91f716033de153703200f96edfd.tar.xz
discord.py-c6d09a8bfa5fd91f716033de153703200f96edfd.zip
Add Thread.is_news()
-rw-r--r--discord/threads.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/threads.py b/discord/threads.py
index 3efc4db0..ab022eeb 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,
*,