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

  • Cancel the discover request for this bot

    This cannot be used to remove bots from discover that have already been accepted and should only be called on bots that have an outstanding discover request.

    Returns Promise<void>

  • Get the status of the discover request for this bot

    Returns Promise<
        {
            id: string;
            status: | "Pending"
            | "UnderReview"
            | { Removed: null
            | string }
            | { Denied: null | string }
            | { Approved: null | string };
            type: "Bot" | "Server";
        },
    >

    The discovery request for this bot if one exists

  • Edit a bot

    Parameters

    • data: {
          analytics?: null | boolean;
          interactions_url?: null | string;
          name?: null | string;
          public?: null | boolean;
          remove?: ("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?: ("Token" | "InteractionsURL")[]

        Fields to remove from bot object

        []
        

    Returns Promise<void>

  • Add bot to the discover request queue

    Returns Promise<void>