Discord::update: Difference between revisions
(Created page with "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 'play...") |
m (Added image) |
||
| Line 11: | Line 11: | ||
mp.discord.update('Playing on Freeroam', 'Playing as Ronald McDonald') | mp.discord.update('Playing on Freeroam', 'Playing as Ronald McDonald') | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Result: | |||
[[File:UpdatedRichPresence.jpg]] | |||
==See also== | ==See also== | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
Revision as of 17:27, 23 May 2018
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
mp.discord.update('Playing on Freeroam', 'Playing as Ronald McDonald')
Result:
