Class PublicBot

Public Bot Class

Constructors

  • Construct Public Bot

    Parameters

    • client: Client

      Client

    • data: {
          _id: string;
          avatar?: string;
          default_permissions?: null | number;
          description?: string;
          privacy_policy_url?: string;
          terms_of_service_url?: string;
          username: string;
      }

      Data

      • _id: string

        Bot Id

      • Optionalavatar?: string

        Profile Avatar

      • Optionaldefault_permissions?: null | number

        Format: int64

        Permissions the bot will ask for

      • Optionaldescription?: string

        Profile Description

      • Optionalprivacy_policy_url?: string

        URL for privacy policy

      • Optionalterms_of_service_url?: string

        URL for terms of service

      • username: string

        Bot Username

    Returns PublicBot

Properties

avatar?: File
defaultPermissions: bigint

Permissions the bot asks for (0n when unset or the instance doesn't send them)

description?: string
id: string
username: string

Methods

  • Add the bot to a server

    Parameters

    • server: string | Server

      Server

    • Optionalpermissions: bigint

      Permissions to grant the bot (requires Manage Roles)

    Returns void