Discord Player

VoiceUtils

No description provided

VoiceUtils

new VoiceUtils(player);
ParameterTypeOptional
playerPlayer

Properties

public cache: any

Voice connection cache to store voice connections of the Player components. This property is deprecated and will be removed in the future. It only exists for compatibility reasons.

public player: any

Methods

public connect(channel, options?): Promise<StreamDispatcher>

Joins a voice channel, creating basic stream dispatch manager

ParameterTypeOptionalDescription
channelVoiceChannel | StageChannelThe voice channel
optionsJoinOptionsJoin options

public disconnect(connection): void

Disconnects voice connection

ParameterTypeOptionalDescription
connectionStreamDispatcher | VoiceConnectionThe voice connection

public getConnection(guild, group?): undefined | VoiceConnection

Returns Discord Player voice connection

ParameterTypeOptionalDescription
guildstringThe guild id
groupstringN/A

public join(channel?, options?): Promise<VoiceConnection>

Joins a voice channel

ParameterTypeOptionalDescription
channelVoiceChannel | StageChannelThe voice/stage channel to join
optionsJoinOptionsJoin options

On this page