Skip to content

Channel news, so how do you get them? #1156

Answered by elenakrittik
antsently asked this question in Q&A
Discussion options

You must be logged in to vote

News channels are TextChannels with is_news() -> True, so to count news channels you'll need to do this instead:

announcement_channels = sum(1 for channel in server.text_channels if channel.is_news())

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@antsently
Comment options

@qwqtoday
Comment options

Answer selected by antsently
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants