DisconnectReason
Defined in: packages/voice/src/connection.ts:93
Why a connection is disconnected.
Properties
Section titled “Properties”
optionalcode?:number
Defined in: packages/voice/src/connection.ts:101
The voice gateway close code, for "closed".
message?
Section titled “message?”
optionalmessage?:string
Defined in: packages/voice/src/connection.ts:102
reason
Section titled “reason”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).