Interface ServerOptions

interface ServerOptions {
    authorization: string;
    botToken?: string;
    hostCount: number;
    listenOptions?: Omit<ListenOptions, "path" | "port">;
    max?: number;
    options?: ServerOpts | TlsOptions;
    path?: string;
    port?: number;
    retries?: number;
    shardCount?: number;
    shardsPerHost?: number;
    tls?: boolean;
}

Hierarchy

  • ServerOptions
    • ServerOptions

Properties

authorization: string

Authorization token.

botToken?: string

Bot token.

hostCount: number

Total number of hosts.

listenOptions?: Omit<ListenOptions, "path" | "port">
max?: number
options?: ServerOpts | TlsOptions
path?: string
port?: number
retries?: number
shardCount?: number

Total number of shards on all hosts.

shardsPerHost?: number

Number of shards per host.

tls?: boolean

Generated using TypeDoc