revbot.js
    Preparing search index...

    Interface clientOptions

    Represents the options for configuring the client.

    interface clientOptions {
        fetchMembers?: boolean;
        ignoreBots?: boolean;
        ignoreEvents?: string[];
        isBot?: boolean;
        MessageCache?: { maxSize?: number };
        rest?: { retries: number; timeout: number };
        ws?: { heartbeatInterval?: number; reconnect?: boolean };
    }
    Index

    Properties

    fetchMembers?: boolean

    Whether to fetch all members of a server.

    ignoreBots?: boolean

    Whether to ignore bot messages.

    ignoreEvents?: string[]

    events for the client to ignore.

    isBot?: boolean

    wether to use X-Session-Token or X-Bot-Token

    MessageCache?: { maxSize?: number }

    Type declaration

    • OptionalmaxSize?: number

      The maximum size of the cache.

    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.