enum VoiceConnectionDisconnectReason

export declare enum VoiceConnectionDisconnectReason

The reasons a voice connection can be in the disconnected state.

Members

AdapterUnavailable = 1

When the adapter was unable to send a message requested by the VoiceConnection.

EndpointRemoved = 2

When a VOICE_SERVER_UPDATE packet is received with a null endpoint, causing the connection to be severed.

Manual = 3

When a manual disconnect was requested.

WebSocketClose = 0

When the WebSocket connection has been closed.