WebSocketClosedEvent
ruvyrias / WebSocketClosedEvent
Interface: WebSocketClosedEvent
Defined in: src/Player.ts:99
Represents the event when the WebSocket connection to Discord voice servers is closed.
Extends
Properties
byRemote
byRemote:
boolean
Defined in: src/Player.ts:105
Indicates whether the connection was closed by the remote (Discord) side.
code
code:
number
Defined in: src/Player.ts:103
The WebSocket close code.
guildId
guildId:
string
Defined in: src/Player.ts:49
The unique identifier of the guild where the player event occurred.
Inherited from
op
op:
"event"
Defined in: src/Player.ts:45
The operation identifier, always set to 'event'.
Inherited from
reason
reason:
string
Defined in: src/Player.ts:107
The reason for closing the WebSocket connection.
type
type:
"WebSocketClosedEvent"
Defined in: src/Player.ts:101
The type of the player event, set to 'WebSocketClosedEvent'.