Skip to main content

ruvyrias / Exports / WebSocketClosedEvent

Interface: WebSocketClosedEvent

Represents the event when the WebSocket connection to Discord voice servers is closed.

Hierarchy

Table of contents

Properties

Properties

byRemote

byRemote: boolean

Indicates whether the connection was closed by the remote (Discord) side.

Defined in

src/Player/Player.ts:103


code

code: number

The WebSocket close code.

Defined in

src/Player/Player.ts:101


guildId

guildId: string

The unique identifier of the guild where the player event occurred.

Inherited from

PlayerEvent.guildId

Defined in

src/Player/Player.ts:47


op

op: "event"

The operation identifier, always set to 'event'.

Inherited from

PlayerEvent.op

Defined in

src/Player/Player.ts:43


reason

reason: string

The reason for closing the WebSocket connection.

Defined in

src/Player/Player.ts:105


type

type: "WebSocketClosedEvent"

The type of the player event, set to 'WebSocketClosedEvent'.

Overrides

PlayerEvent.type

Defined in

src/Player/Player.ts:99