Skip to content

Commit

Permalink
Add news attribute to TextChannel (#1370)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeloBlivion authored and Lulalaby committed Jun 11, 2022
1 parent 36e96d2 commit f1a47d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
*,
Expand Down

0 comments on commit f1a47d5

Please sign in to comment.