class ClientApplication
extends
Applicationexport class ClientApplication extends Application
Represents 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
ApplicationCommandManager commands :
The application command manager for this application
readonlynumber createdTimestamp :
The timestamp the application was created at
Inherited from: Application
ApplicationEmojiManager emojis :
The application emoji manager for this application
EntitlementManager entitlements :
The entitlement manager for this application
Readonly<ApplicationFlagsBitField> flags :
The flags this application has
ClientApplicationInstallParams | null installParams :
Settings for this application's default in-app authorization
IntegrationTypesConfiguration | null integrationTypesConfig :
Default scopes and permissions for each supported installation context. The keys are stringified variants of ApplicationIntegrationType.
readonlyboolean partial :
Whether this application is partial
This application's role connection verification entry point URL
string[] rpcOrigins :
The application's RPC origins, if enabled
string[] tags :
The tags this application has (max of 5)
coverURLoptions?: ImageURLOptions) : string | null (
A link to this application's cover image.
Inherited from: Application
editoptions: ClientApplicationEditOptions) : Promise<ClientApplication> (
Edits this application.
editRoleConnectionMetadataRecordsrecords: readonly ApplicationRoleConnectionMetadataEditOptions[]) : Promise<ApplicationRoleConnectionMetadata[]> (
Updates this application's role connection metadata records
fetchPromise<ClientApplication> () :
Obtains this application from Discord.
fetchRoleConnectionMetadataRecordsPromise<ApplicationRoleConnectionMetadata[]> () :
Gets this application's role connection metadata records
fetchSKUsPromise<Collection<Snowflake, SKU>> () :
Gets this application's SKUs
iconURLoptions?: ImageURLOptions) : string | null (
A link to the application's icon.
Inherited from: Application
toJSONunknown () :
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