class ClientApplication

extends

Application
export class ClientApplication extends Application

Represents a client application.

approximateGuildCount : number | null

An approximate amount of guilds this application is in.

bot : User | null

The bot associated with this application.

botPublic : boolean | null

If this application's bot is public

botRequireCodeGrant : boolean | null

If this application's bot requires a code grant when using the OAuth2 flow

readonly
client : Client

The client that instantiated this

The application command manager for this application

cover : string | null

The hash of the application's cover image

readonly
createdAt : Date

The time the application was created at

readonly
createdTimestamp : number

The timestamp the application was created at

customInstallURL : string | null

This application's custom installation URL

optional
description? : string

The application's description

The flags this application has

readonly
guild : Guild | null

The guild associated with this application.

guildId : Snowflake | null

The id of the guild associated with this application.

optional
icon? : string

The application's icon hash

id : Snowflake

The application's id

Settings for this application's default in-app authorization

interactionsEndpointURL : string | null

This application's interaction endpoint URL.

optional
name? : string

The name of the application

owner : User | Team | null

The owner of this OAuth application

readonly
partial : boolean

Whether this application is partial

roleConnectionsVerificationURL : string | null

This application's role connection verification entry point URL

rpcOrigins : string[]

The application's RPC origins, if enabled

tags : string[]

The tags this application has (max of 5)

coverURL(
options?: ImageURLOptions
) : string | null

A link to this application's cover image.

Inherited from: Application

Edits this application.

Updates this application's role connection metadata records

Obtains this application from Discord.

fetchRoleConnectionMetadataRecords() : Promise<ApplicationRoleConnectionMetadata[]>

Gets this application's role connection metadata records

iconURL(
options?: ImageURLOptions
) : string | null

A link to the application's icon.

Inherited from: Application

toJSON() : unknown

Inherited from: Application

toString() : string | null

When concatenated with a string, this automatically returns the application's name instead of the Application object.

Examples:
// Logs: Application name: My App
console.log(`Application name: ${application}`);

Inherited from: Application

valueOf() : string

Inherited from: Base