revbot.js
    Preparing search index...

    Interface clientOptions

    Represents the options for configuring the client.

    interface clientOptions {
        fetchMembers?: boolean;
        rest?: { retries: number; timeout: number };
        ws?: { heartbeatInterval?: number; reconnect?: boolean };
    }
    Index

    Properties

    fetchMembers?: boolean

    Whether to fetch all members of a server.

    rest?: { retries: number; timeout: number }

    Configuration for REST API requests.

    Type declaration

    • retries: number

      The number of retries for failed REST requests.

    • timeout: number

      The timeout for REST requests in milliseconds.

    ws?: { heartbeatInterval?: number; reconnect?: boolean }

    Configuration for WebSocket connections.

    Type declaration

    • OptionalheartbeatInterval?: number

      The interval for sending heartbeats in milliseconds.

    • Optionalreconnect?: boolean

      Whether to automatically reconnect on disconnection.