Discord::update
Jump to navigation
Jump to search
This function will let you set further details for the Discord Rich Presence field for a player if they have Discord running. Each argument represents one line under the 'playing a game' section.
Syntax
mp.discord.update(detailedStatus, state)Required Arguments
- detailedStatus: String
- state: String
Return value
- Undefined
Example
Client-Side
mp.discord.update('Playing on Freeroam', 'Playing as Ronald McDonald')Result:
See also
- RAGE.Discord.Update - Same function in C#
