Class Application

Represents an application.

Hierarchy (view full)

Constructors

Properties

approximateGuildCount: number

The approximate number of guilds the application is in.

approximateUserInstallCount: number

The approximate number of users this application has been installed by.

botPublic?: boolean

If the bot can be invited by anyone.

botRequireCodeGrant?: boolean

If authorizing the bot requires a code grant.

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.

discoverabilityState?: ApplicationDiscoverabilityState

The state of this application's discoverability.

discoveryEligibilityFlags?: number

The flags for this application's discovery eligibility.

The entitlements for this application. This will almost certainly be empty unless you fetch entitlements, or recieve new/updated entitlements.

The explicit content filter for this application.

flags: number

This application's flags.

guild: null | OAuthGuild

If this application is a game sold on Discord, the guild to which it has been linked. This will only be present if recieved via /applications/@me.

guildID: null | string

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

hook: boolean
icon: null | string

The icon hash of the application.

id: string
installParams?: InstallParams

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

integrationTypes: ApplicationIntegrationTypes[]

The install types available for this application.

integrationTypesConfig: IntegrationTypesConfig

The configs for the install types available for this application.

interactionsEndpointURL: null | string

This applications interaction endpoint url, if any.

interactionsEventTypes?: string[]

The event types that will be recieved like http interactions, if interactionsVersion is 2.

interactionsVersion?: number

The interactions version of this application.

isMonetized: boolean

If this application is monetized.

monetizationEligibilityFlags?: number

The flags for this application's monetization eligibility.

monetizationState?: ApplicationMonetizationState

This application's monetization state.

name: string

The name of the application.

owner: null | User

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.

redirectURIs: string[]

The redirect URIs for this application.

roleConnectionsVerificationURL: null | string

This application's role connections verification url, if any.

rpcApplicationState?: RPCApplicationState

The state of this application's RPC application.

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.

storeApplicationState?: StoreApplicationState

The state of this application's store application state.

tags: string[]

The tags for this application.

team: null | Team

The team that owns this application.

termsOfServiceURL?: string

A URL to this application's terms of service.

type: null | number

The type of this application.

verificationState?: ApplicationVerificationState

The state of this application's verification.

verifyKey: string

The bot's hex encoded public key.

Accessors

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

  • The url of this application's icon.

    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