Members
(readonly) createdAt :Date
The time the app was created at
Type:
- Date
(readonly) createdTimestamp :number
The timestamp the app was created at
Type:
- number
description :string
The app's description
Type:
- string
icon :string
The app's icon hash
Type:
- string
id :Snowflake
The ID of the app
Type:
name :string
The name of the app
Type:
- string
Methods
coverImage(optionsopt) → {string}
A link to this application's cover image.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
ImageURLOptions |
<optional> |
{} | Options for the Image URL |
Returns:
URL to the cover image
- Type
- string
fetchAssets() → {Promise.<Array.<ApplicationAsset>>}
Gets the clients rich presence assets.
Returns:
- Type
- Promise.<Array.<ApplicationAsset>>
iconURL(optionsopt) → {string}
A link to the application's icon.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
ImageURLOptions |
<optional> |
{} | Options for the Image URL |
Returns:
URL to the icon
- Type
- string
toString() → {string}
When concatenated with a string, this automatically returns the application's name instead of the
Oauth2Application object.
Returns:
- Type
- string
Example
// Logs: Application name: My App
console.log(`Application name: ${application}`);