You are reading the documentation for the
next
version of discord.js. Documentation for v13/v14+ has been moved to
old.discordjs.dev
/
docs
/
packages
/
voice
/
main
/
getVoiceConnections%3AFunction
Search...
K
voice
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
Classes
AudioPlayer
AudioPlayerError
AudioReceiveStream
AudioResource
PlayerSubscription
SpeakingMap
SSRCMap
VoiceConnection
VoiceReceiver
Functions
createAudioPlayer
createAudioResource
createDefaultAudioReceiveStreamOptions
demuxProbe
entersState
generateDependencyReport
getGroups
getVoiceConnection
getVoiceConnections
joinVoiceChannel
validateDiscordOpusHead
Enums
AudioPlayerStatus
EndBehaviorType
NoSubscriberBehavior
StreamType
VoiceConnectionDisconnectReason
VoiceConnectionStatus
Interfaces
AudioPlayer
AudioPlayerBufferingState
AudioPlayerIdleState
AudioPlayerPausedState
AudioPlayerPlayingState
AudioReceiveStreamOptions
CreateAudioPlayerOptions
CreateAudioResourceOptions
CreateVoiceConnectionOptions
DiscordGatewayAdapterImplementerMethods
DiscordGatewayAdapterLibraryMethods
JoinConfig
JoinVoiceChannelOptions
ProbeInfo
SpeakingMap
SSRCMap
VoiceConnection
VoiceConnectionConnectingState
VoiceConnectionDestroyedState
VoiceConnectionDisconnectedBaseState
VoiceConnectionDisconnectedOtherState
VoiceConnectionDisconnectedWebSocketState
VoiceConnectionReadyState
VoiceConnectionSignallingState
VoiceUserData
Types
AudioPlayerState
DiscordGatewayAdapterCreator
EndBehavior
VoiceConnectionDisconnectedState
VoiceConnectionState
Variables
version
getVoiceConnections
Overload 1
of 2
Overload 1
Overload 2
export declare function
getVoiceConnections
(
group
?:
'default'
)
:
Map
<
string
,
VoiceConnection
>;
export declare function
getVoiceConnections
(group
?:
'default'
)
:
Map
<
string
,
VoiceConnection
>;
Summary
Retrieves all the voice connections under the 'default' group.
Returns
The map of voice connections
Parameters
Name
Type
Optional
Description
group
'default'
Yes
The group to look up