ClientVoiceManager
classe · Source
Manages voice connections for the client Feat: Support both lib & djs/voice
Properties
client
client: Client
The client that instantiated this voice manager Source
connection
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
| Name | Type | Description |
|---|---|---|
channel | VoiceChannel | StageChannel | DMChannel | GroupDMChannel | Snowflake | The voice channel to join |
config | JoinChannelConfig | Config to join voice channel |
Returns: Promise<VoiceConnection>Source