Interface AudioListenOptions

Options for starting the audio listener.

interface AudioListenOptions {
    autoReconnect?: boolean;
    displayName?: string;
    guildId: string;
    initialDelayMs?: number;
    maxAttempts?: number;
    maxDelayMs?: number;
    nets?: number[];
}

Properties

autoReconnect?: boolean

Auto-reconnect on connection loss.

true
displayName?: string

Display name shown in the shard roster for this listener.

""
guildId: string

Discord guild ID to listen on.

initialDelayMs?: number

Initial delay before first reconnect attempt in ms.

2000
maxAttempts?: number

Maximum consecutive reconnect attempts.

Infinity
maxDelayMs?: number

Maximum delay between reconnect attempts in ms.

30000
nets?: number[]

Initial net IDs to receive audio from.