@lacunahub/lavaluna.js
    Preparing search index...

    Interface WebSocketClosedEvent

    Dispatched when an audio WebSocket (to Discord) is closed. This can happen for various reasons (normal and abnormal), e.g. when using an expired voice server update. 4xxx codes are usually bad. See the Discord Docs.

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

    Hierarchy (View Summary)

    Index

    Properties

    byRemote: boolean

    Whether the connection was closed by Discord.

    code: number

    The Discord close event code.

    guildId: string

    The guild id.

    op: "event"
    reason: string

    The close reason.

    type: "WebSocketClosedEvent"

    The type of event.