From 2e580d2a1d41c3ff22d8c97a01f363d5808b60a6 Mon Sep 17 00:00:00 2001 From: NeloBlivion <41271523+NeloBlivion@users.noreply.github.com> Date: Fri, 20 May 2022 19:07:41 +0100 Subject: [PATCH] Add news attribute to TextChannel (#1370) --- discord/channel.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discord/channel.py b/discord/channel.py index 2b4b5e957d..092eb3fbdd 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -720,6 +720,10 @@ def is_news(self) -> bool: """:class:`bool`: Checks if the channel is a news/anouncements channel.""" return self._type == ChannelType.news.value + @property + def news(self) -> bool: + return self.is_news() + async def create_thread( self, *,