Class OAuthApplication

Represents an oauth application.

Hierarchy

  • Base
    • OAuthApplication

Accessors

Constructors

Methods

  • The url of this application's cover image.

    Parameters

    • Optional format: "jpg" | "jpeg" | "png" | "webp" | "gif"

      The format the url should be.

    • Optional size: number

      The dimensions of the image.

    Returns null | string

Properties

botPublic: boolean

When false, only the application's owners can invite the bot to guilds.

botRequireCodeGrant: boolean

When true, the applications bot will only join upon the completion of the full oauth2 code grant flow.

coverImage: null | string

This application's rich presence invite cover image hash, if any.

customInstallURL?: string

This application's default custom authorization link, if any.

description: string

The description of the application.

flags: number

This application's public flags.

guildID: null | string

If this application is a game sold on Discord, the ID of the guild to which it has been linked.

icon: null | string

The icon hash of the application.

id: string
installParams?: InstallParams

Settings for this application's in-app authorization link, if enabled.

name: string

The name of the application.

owner: User

The owner of this application.

ownerID: string

The ID of the owner of this application.

primarySKUID?: string

If this application is a game sold on Discord, the id of the Game's SKU.

privacyPolicyURL?: string

A URL to this application's privacy policy.

roleConnectionsVerificationURL?: string

This application's role connections verification url.

rpcOrigins: string[]

A list of rpc origin urls, if rpc is enabled.

slug?: string

If this application is a game sold on Discord, the slug that links to its store page.

tags?: string[]

The tags for this application.

team: null | Team

The team that owns this application, if any.

termsOfServiceURL?: string

A URL to this application's terms of service.

type: null | number

The type of this application.

verifyKey: string

The bot's hex encoded public key.