Add Thread.is_news()

This commit is contained in:
Rapptz
2021-06-08 07:26:22 -04:00
parent 72c66a1706
commit c6d09a8bfa
+4
View File
@@ -208,6 +208,10 @@ class Thread(Messageable, Hashable):
""":class:`bool`: Whether the thread is a private thread.""" """:class:`bool`: Whether the thread is a private thread."""
return self._type is ChannelType.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( async def edit(
self, self,
*, *,