ClientApplication

export 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.
approximateUserInstallCount:number | null
An approximate amount of users that have installed this application.
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<true>
The client that instantiated this
Inherited from Base
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
Inherited from Application
Readonly
createdTimestamp:number
The timestamp the application was created at
Inherited from Application
customInstallURL:string | null
This application's custom installation URL
description:string | null
The application's description
Inherited from Application
The application emoji manager for this application
entitlements:EntitlementManager
The entitlement manager for this application
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.
icon:string | null
The application's icon hash
Inherited from Application
The application's id
Inherited from Application
Settings for this application's default in-app authorization
integrationTypesConfig:IntegrationTypesConfiguration | null
Default scopes and permissions for each supported installation context. The keys are stringified variants of ApplicationIntegrationType.
interactionsEndpointURL:string | null
This application's interaction endpoint URL.
name:string | null
The name of the application
Inherited from 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?):string | null
A link to this application's cover image.
Returns
NameTypeOptionalDescription
optionsImageURLOptionsYesOptions for the image URL
Inherited from Application
edit(options):Promise<ClientApplication>
Edits this application.
NameTypeOptionalDescription
optionsClientApplicationEditOptionsNoThe options for editing this application
editRoleConnectionMetadataRecords(records):Promise<ApplicationRoleConnectionMetadata[]>
Updates this application's role connection metadata records
NameTypeOptionalDescription
recordsreadonly ApplicationRoleConnectionMetadataEditOptions[]NoThe new role connection metadata records
Obtains this application from Discord.
fetchRoleConnectionMetadataRecords():Promise<ApplicationRoleConnectionMetadata[]>
Gets this application's role connection metadata records
Gets this application's SKUs
iconURL(options?):string | null
A link to the application's icon.
Returns
NameTypeOptionalDescription
optionsImageURLOptionsYesOptions for the image URL
Inherited from Application
toJSON():unknown
toString():string | null
When concatenated with a string, this automatically returns the application's name instead of the Application object.
Returns
Example
// Logs: Application name: My App
console.log(`Application name: ${application}`);
// Logs: Application name: My App
console.log(`Application name: ${application}`);
Inherited from Application
valueOf():string