class Discord (client-side)
Available since version: 0.3.0
This class exposes static methods for updating the user's Discord activity from the game client.
Properties
No properties.
Methods
static setActivity
Update the Discord Rich Presence activity. Missing fields keep their last-set values.
void setActivity(table Activity)
Parameters:
tableActivity: configuration table.
static setState
Update the activity state text.
void setState(string state)
Parameters:
stringstate: New activity state text.
static setDetails
Update the activity details text.
void setDetails(string details)
Parameters:
stringdetails: New activity details text.
static setLargeImage
Update the large image entry for the activity.
void setLargeImage(string key, string text)
Parameters:
stringkey: Asset key for the large image.stringtext: Optional tooltip text for the large image.
static setSmallImage
Update the small image entry for the activity.
void setSmallImage(string key, string text)
Parameters:
stringkey: Asset key for the small image.stringtext: Optional tooltip text for the small image.
static clearActivity
Clear the current activity and stored values.
void clearActivity()
Callbacks
No callbacks.