Skip to content

DisconnectReason

Defined in: packages/voice/src/connection.ts:93

Why a connection is disconnected.

optional code?: number

Defined in: packages/voice/src/connection.ts:101

The voice gateway close code, for "closed".


optional message?: string

Defined in: packages/voice/src/connection.ts:102


reason: "timeout" | "closed" | "left" | "removed" | "unsent"

Defined in: packages/voice/src/connection.ts:99

"left" (disconnect()), "removed" (moved out or kicked), "timeout", "closed" (the voice server closed the session), "unsent" (op 4 could not be sent: the client is not connected).