Skip to content

ClientVoiceManager

classe · Source

Manages voice connections for the client Feat: Support both lib & djs/voice

Properties

client

readonly

client: Client

The client that instantiated this voice manager Source

connection

nullable

connection: VoiceConnection

A current connection objects Source

adapters

adapters: Map<Snowflake, Object>

Maps guild ids to voice adapters created for use with @discordjs/voice. Source

Methods

joinChannel

joinChannel(channel: VoiceChannel | StageChannel | DMChannel | GroupDMChannel | Snowflake, config: JoinChannelConfig): Promise<VoiceConnection>

Sets up a request to join a voice channel. Parameters

NameTypeDescription
channelVoiceChannel | StageChannel | DMChannel | GroupDMChannel | SnowflakeThe voice channel to join
configJoinChannelConfigConfig to join voice channel

Returns: Promise<VoiceConnection>Source

Unofficial software. Not affiliated with or supported by Discord.