class ClientApplication
extends
Applicationexport class ClientApplication extends ApplicationRepresents a client application.
An approximate amount of users that have installed this application.
If this application's bot requires a code grant when using the OAuth2 flow
commands : ApplicationCommandManager
The application command manager for this application
readonlycreatedTimestamp : number
The timestamp the application was created at
Inherited from: Application
emojis : ApplicationEmojiManager
The application emoji manager for this application
entitlements : EntitlementManager
The entitlement manager for this application
flags : Readonly<ApplicationFlagsBitField>
The flags this application has
installParams : ClientApplicationInstallParams | null
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.
readonlypartial : boolean
Whether this application is partial
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
edit(options: ClientApplicationEditOptions) : Promise<ClientApplication>
Edits this application.
editRoleConnectionMetadataRecords(records: readonly ApplicationRoleConnectionMetadataEditOptions[]) : Promise<ApplicationRoleConnectionMetadata[]>
Updates this application's role connection metadata records
fetch() : Promise<ClientApplication>
Obtains this application from Discord.
fetchRoleConnectionMetadataRecords() : Promise<ApplicationRoleConnectionMetadata[]>
Gets this application's role connection metadata records
fetchSKUs() : Promise<Collection<Snowflake, SKU>>
Gets this application's SKUs
iconURL(options?: ImageURLOptions) : string | null
A link to the application's icon.
Inherited from: Application
toJSON() : unknown
Inherited from: Application
When concatenated with a string, this automatically returns the application's name instead of the Application object.
// Logs: Application name: My App
console.log(`Application name: ${application}`);Inherited from: Application