asChannel

open suspend override fun asChannel(): VoiceChannel(source)

Requests to get the this behavior as a VoiceChannel.

Throws

if anything went wrong during the request.

if the channel wasn't present.

if the channel isn't a VoiceChannel.