getVoiceConnection

export declare function getVoiceConnection(guildId: string, group?: string): VoiceConnection | undefined;
export declare function getVoiceConnection(guildId: string, group?: string): VoiceConnection | undefined;
Finds a voice connection with the given guild id and group. Defaults to the 'default' group.
Returns
The voice connection, if it exists
NameTypeOptionalDescription
guildIdstringNo
The guild id of the voice connection
groupstringYes
the group that the voice connection was registered with