Discord Player

getVoiceConnection

Finds a voice connection with the given guild id and group. Defaults to the default group.

getVoiceConnection(guildId, group?): VoiceConnection | undefined

Finds a voice connection with the given guild id and group. Defaults to the 'default' group.

ParameterTypeOptionalDescription
guildIdstring❌The guild id of the voice connection
groupstring✅the group that the voice connection was registered with

On this page