diff options
| author | Rapptz <[email protected]> | 2021-05-04 08:37:26 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-08 07:26:22 -0400 |
| commit | c6d09a8bfa5fd91f716033de153703200f96edfd (patch) | |
| tree | 036eda15d6d45795303a7e6a6cbf00d55f594826 /discord/threads.py | |
| parent | Bump gateway API to v9 (diff) | |
| download | discord.py-c6d09a8bfa5fd91f716033de153703200f96edfd.tar.xz discord.py-c6d09a8bfa5fd91f716033de153703200f96edfd.zip | |
Add Thread.is_news()
Diffstat (limited to 'discord/threads.py')
| -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 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, *, |