Member Junction
    Preparing search index...

    The live native-voice client the addon hands back. The surface closely mirrors IDiscordVoiceSdk but in the addon's own (lower-cased) vocabulary; this adapter maps between the two. VERIFY against the native Discord voice addon.

    interface NativeVoiceClient {
        getMembers(): Promise<NativeVoiceMember[]>;
        joinVoiceChannel(args: NativeVoiceJoinArgs): Promise<NativeVoiceJoinResult>;
        leaveVoiceChannel(): Promise<void>;
        muteMember(userId: string | number): Promise<void>;
        onAudioFrame(cb: (frame: NativeVoiceAudioFrame) => void): void;
        onDisconnect(cb: () => void): void;
        onMemberJoin(cb: (member: NativeVoiceMember) => void): void;
        onMemberLeave(cb: (userId: string | number) => void): void;
        postChatMessage(text: string): Promise<void>;
        sendAudioFrame(pcm: ArrayBuffer): void;
    }
    Index

    Methods

    • Mutes a member (requires the bot have the guild's "Mute Members" permission).

      Parameters

      • userId: string | number

      Returns Promise<void>

    • Registers the member-leave callback (id of the member that left).

      Parameters

      • cb: (userId: string | number) => void

      Returns void

    • Sends one raw PCM frame as the bot's outbound audio (the audio-player send path — the agent's voice).

      Parameters

      • pcm: ArrayBuffer

      Returns void