asChannelOrNull

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

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

Throws

if anything went wrong during the request.