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
readonlyClient client :
The client that instantiated this
ApplicationCommandManager commands :
The application command manager for this application
readonlyDate createdAt :
The time the application was created at
readonlynumber createdTimestamp :
The timestamp the application was created at
optionalstring description? :
The application's description
Readonly<ApplicationFlagsBitField> flags :
The flags this application has
optionalstring icon? :
The application's icon hash
Snowflake id :
The application's id
ClientApplicationInstallParams | null installParams :
Settings for this application's default in-app authorization
optionalstring name? :
The name of the application
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