Discord::update

From RAGE Multiplayer Wiki

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.


Client-Side Function

 C#  JavaScript



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


C# Syntax

RAGE.Discord.Update(string details, string state)

Parameters

  • details: String details
  • state: String state

Example

RAGE.Discord.Update("Playing on Freeroam", "Playing as Ronald McDonald");