Abstract

Application

export abstract class Application extends Base
export abstract class Application extends Base
Represents an OAuth2 Application.

Extends

Base
constructor(client, data)
Constructs a new instance of the Application class
NameTypeOptionalDescription
clientClient<true>NoNone
dataRawApplicationDataNoNone
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
Readonly
createdAt:Date
The time the application was created at
Readonly
createdTimestamp:number
The timestamp the application was created at
description:string | null
The application's description
icon:string | null
The application's icon hash
The application's id
name:string | null
The name of the application
coverURL(options?):string | null
A link to this application's cover image.
Returns
NameTypeOptionalDescription
optionsImageURLOptionsYesOptions for the image URL
iconURL(options?):string | null
A link to the application's icon.
Returns
NameTypeOptionalDescription
optionsImageURLOptionsYesOptions for the image URL
toJSON():unknown
toString():string | null
When concatenated with a string, this automatically returns the application's name instead of the Application object.
Returns
Example
// Logs: Application name: My App
console.log(`Application name: ${application}`);
// Logs: Application name: My App
console.log(`Application name: ${application}`);
valueOf():string