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 May 20, 2022
1 parent 06ac55b commit 2e580d2
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 2e580d2

Please sign in to comment.