send

open suspend override fun send(channel: VoiceChannelBehavior)(source)

Plays this sound in channel.

This requires the Permission.Speak and Permission.UseSoundboard permissions, and also the Permission.UseExternalSounds permission if the sound is from a different server. Additionally, requires the user to be connected to the voice channel, having a voice state without VoiceState.isDeafened, VoiceState.isSelfDeafened, VoiceState.isMuted, or VoiceState.isSuppressed enabled.

Throws

if something went wrong during the request.