VoiceUtils
No description provided
VoiceUtils
| Parameter | Type | Optional | 
|---|---|---|
| player | Player | ❌ | 
Properties
public cache: any
Voice connection cache to store voice connections of the Player components. This property is deprecated and will be removed in the future. It only exists for compatibility reasons.
- 
⚠️ Deprecated 
public player: any
Methods
public connect(channel, options?): Promise<StreamDispatcher>
Joins a voice channel, creating basic stream dispatch manager
| Parameter | Type | Optional | Description | 
|---|---|---|---|
| channel | VoiceChannel | StageChannel | ❌ | The voice channel | 
| options | JoinOptions | ✅ | Join options | 
public disconnect(connection): void
Disconnects voice connection
| Parameter | Type | Optional | Description | 
|---|---|---|---|
| connection | StreamDispatcher | VoiceConnection | ❌ | The voice connection | 
public getConnection(guild, group?): undefined | VoiceConnection
Returns Discord Player voice connection
public join(channel?, options?): Promise<VoiceConnection>
Joins a voice channel
| Parameter | Type | Optional | Description | 
|---|---|---|---|
| channel | VoiceChannel | StageChannel | ✅ | The voice/stage channel to join | 
| options | JoinOptions | ✅ | Join options |