Class: RichPresenceAssets

RichPresenceAssets

Assets for a rich presence

Constructor

new RichPresenceAssets()

Source:

Members

(nullable) largeImage :Snowflake

ID of the large image asset
Type:
Source:

(nullable) largeText :string

Hover text for the large image
Type:
  • string
Source:

(nullable) smallImage :Snowflake

ID of the small image asset
Type:
Source:

(nullable) smallText :string

Hover text for the small image
Type:
  • string
Source:

Methods

largeImageURL(optionsopt) → {string}

Gets the URL of the large image asset
Parameters:
Name Type Attributes Description
options Object <optional>
Options for the image url
Properties
Name Type Attributes Description
format string <optional>
Format of the image
size number <optional>
Size of the image
Source:
Returns:
The large image URL
Type
string

smallImageURL(optionsopt) → {string}

Gets the URL of the small image asset
Parameters:
Name Type Attributes Description
options Object <optional>
Options for the image url
Properties
Name Type Attributes Description
format string <optional>
Format of the image
size number <optional>
Size of the image
Source:
Returns:
The small image URL
Type
string