class ClientApplication
extends
Applicationexport class ClientApplication extends Application
Represents a client 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
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
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