asChannelOrNull

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

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

Throws

if anything went wrong during the request.