From f1a47d5fd6c269921aca304c4e50be720f83e46f 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, *,