Class Bot

Bot Class

Constructors

Properties

id: string

Accessors

  • get analytics(): boolean

    Whether this bot has analytics enabled

    Returns boolean

  • get createdAt(): Date

    Time when this user created their account

    Returns Date

  • get discoverable(): boolean

    Whether this bot shows up on Discover

    Returns boolean

  • get interactionsUrl(): undefined | string

    Interactions URL

    Returns undefined | string

  • get privacyPolicyUrl(): undefined | string

    Link to privacy policy

    Returns undefined | string

  • get public(): boolean

    Whether this bot can be invited by anyone

    Returns boolean

  • get termsOfServiceUrl(): undefined | string

    Link to terms of service

    Returns undefined | string

Methods

  • Edit a bot

    Parameters

    • data: {
          analytics?: null | boolean;
          interactions_url?: null | string;
          name?: null | string;
          public?: null | boolean;
          remove?: null | ("Token" | "InteractionsURL")[];
      }

      Changes

      • Optionalanalytics?: null | boolean

        Whether analytics should be gathered for this bot

        Must be enabled in order to show up on Revolt Discover.

      • Optionalinteractions_url?: null | string

        Interactions URL

      • Optionalname?: null | string

        Bot username

      • Optionalpublic?: null | boolean

        Whether the bot can be added by anyone

      • Optionalremove?: null | ("Token" | "InteractionsURL")[]

        Fields to remove from bot object

    Returns Promise<void>