SetDiscordRichPresenceAsset
Jump to navigation
Jump to search
Important Note: To use this function, you must set up your own application setDiscordApplicationID |
Syntax
bool setDiscordRichPresenceAsset(string assetImage, string text)
OOP Syntax Help! I don't understand this!
- Method: DiscordRPC:setAsset(...)
Required arguments
- assetImage: a string containing the key of the image you uploaded to your application's asset list.
- text: a string to be displayed when someone hovers over the large image asset in Discord.
Returns
Returns true if function succeeds, false otherwise.
Example
The example sets the large image asset to my_logo.
addCommandHandler("setlogo", function () if isDiscordRichPresenceConnected() then setDiscordRichPresenceAsset("my_logo", "This is my logo!") end end )