asChannelOrNull

open suspend override fun asChannelOrNull(): NewsChannel?(source)

Requests to get this behavior as a NewsChannel, returns null if the channel isn't present or if the channel isn't a news channel.

Throws

if something went wrong during the request.