class Application

extends

Base
abstract
export abstract class Application extends Base

Represents an OAuth2 Application.

Constructors

constructor(
client: Client<true>
)

Constructs a new instance of the Application class

readonly
client : Client

The client that instantiated this

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?: ImageURLOptions
) : string | null

A link to this application's cover image.

iconURL(
options?: ImageURLOptions
) : string | null

A link to the application's icon.

toJSON() : unknown

toString() : string | null

When concatenated with a string, this automatically returns the application's name instead of the Application object.

Examples:
// Logs: Application name: My App
console.log(`Application name: ${application}`);

valueOf() : string

Inherited from: Base