setDiscordRichPresenceDetails | Multi Theft Auto: Wiki Skip to content

setDiscordRichPresenceDetails

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


This function sets the details text of Discord Rich Presence.

Important

To use this function, you must set up your own application setDiscordApplicationID

Syntax

setDiscordRichPresenceDetails ( )

Code Examples

client

This example shows how to change the state and details of the Discord Rich Presence application.

local app_id = "YOUR_APPLICATION_ID"
if setDiscordApplicationID(app_id) then
local name = getPlayerName(localPlayer)
setDiscordRichPresenceState("In-game")
setDiscordRichPresenceDetails("currently as "..name)
end