Discord::update

From RAGE Multiplayer Wiki
Revision as of 21:19, 16 January 2018 by Calgon (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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')

See also