import { DisconnectReason } from "@skeldjs/constant"; import { BasicEvent } from "@skeldjs/events"; import { Connection } from "../../../worker"; import { ClientEvent } from "./ClientEvent"; /** * Emitted when a client disconnected or is force-disconnected from the server. * */ export declare class ClientDisconnectEvent extends BasicEvent implements ClientEvent { /** * The client that was disconnected from the server. */ readonly client: Connection; /** * The reason for why the client disconnected. */ readonly reason: DisconnectReason; /** * Custom message for why the client was disconnected, if {@link ClientDisconnectEvent.reason} * is "Custom". */ readonly customMessage?: string | undefined; static eventName: "client.disconnect"; eventName: "client.disconnect"; constructor( /** * The client that was disconnected from the server. */ client: Connection, /** * The reason for why the client disconnected. */ reason: DisconnectReason, /** * Custom message for why the client was disconnected, if {@link ClientDisconnectEvent.reason} * is "Custom". */ customMessage?: string | undefined); }