VoiceUtils
new VoiceUtils()
Properties
public cache: Collection<string, StreamDispatcher>
Methods
public connect(channel, options?): Promise<StreamDispatcher>
Joins a voice channel, creating basic stream dispatch manager
Parameter | Type | Optional | Description |
---|---|---|---|
channel | StageChannel | VoiceChannel | ❌ | The voice channel |
options | { deaf: boolean,maxTime: number,queue: GuildQueue<unknown> } | ✅ | Join options |
public disconnect(connection): void
Disconnects voice connection
Parameter | Type | Optional | Description |
---|---|---|---|
connection | StreamDispatcher | VoiceConnection | ❌ | The voice connection |
public getConnection(guild): undefined | StreamDispatcher | VoiceConnection
Returns Discord Player voice connection
Parameter | Type | Optional | Description |
---|---|---|---|
guild | string | ❌ | The guild id |
public join(channel?, options?): Promise<VoiceConnection>
Joins a voice channel
Parameter | Type | Optional | Description |
---|---|---|---|
channel | StageChannel | VoiceChannel | ✅ | The voice/stage channel to join |
options | { deaf: boolean,maxTime: number } | ✅ | Join options |