Skip to content

VoiceManager

The connected guild voices, usable with or without a queue.

Type Parameter Default type
Target VoiceChannelTarget

get size(): number

number

[iterator](): IterableIterator<DisTubeVoice<Target>>

IterableIterator<DisTubeVoice<Target>>


get(guildId): DisTubeVoice<Target> | undefined

Parameter Type
guildId string

DisTubeVoice<Target> | undefined


has(guildId): boolean

Parameter Type
guildId string

boolean


join(channel, options?): Promise<DisTubeVoice<Target>>

Connects to channel, or moves the guild’s existing voice there.

Parameter Type
channel Target
options? VoiceJoinOptions

Promise<DisTubeVoice<Target>>


leave(guildId): Promise<void>

Deletes the guild queue, then releases its voice or waits out a pending join. Concurrent calls share one cleanup.

Parameter Type
guildId string

Promise<void>