Interface WebSocketClosedEvent

interface WebSocketClosedEvent {
    byRemote: boolean;
    code: number;
    guildId: string;
    op: EVENT;
    reason: string;
    type: WebSocketClosedEvent;
}

Hierarchy (view full)

Properties

byRemote: boolean

Whether the connection was closed by Discord

code: number

The Discord close event code

guildId: string

The guild id

op: EVENT

Type of OP

reason: string

The close reason

The type of event