Class Bot

Bot Class

Hierarchy

  • Bot

Constructors

Properties

#collection: BotCollection
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

      • Optional analytics?: null | boolean

        Description

        Whether analytics should be gathered for this bot

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

      • Optional interactions_url?: null | string

        Description

        Interactions URL

      • Optional name?: null | string

        Description

        Bot username

      • Optional public?: null | boolean

        Description

        Whether the bot can be added by anyone

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

        Description

        Fields to remove from bot object

    Returns Promise<void>

Generated using TypeDoc