fix: voice connection

This commit is contained in:
Elysia
2024-07-25 10:50:46 +07:00
parent eb96d562ba
commit c193116100
4 changed files with 30 additions and 18 deletions

4
typings/index.d.ts vendored
View File

@@ -882,10 +882,10 @@ export class ClientVoiceManager {
private constructor(client: Client);
public readonly client: Client;
public adapters: Map<Snowflake, InternalDiscordGatewayAdapterLibraryMethods>;
public connections: Collection<Snowflake, VoiceConnection>;
public connection: VoiceConnection | null;
public joinChannel(
channel: VoiceChannel | StageChannel | DMChannel | GroupDMChannel,
channel: VoiceBasedChannel | DMChannel | GroupDMChannel | Snowflake,
config?: JoinChannelConfig,
): Promise<VoiceConnection>;
}