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
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: 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
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