ResetDiscordRichPresenceData

From Multi Theft Auto: Wiki
Revision as of 19:04, 10 October 2023 by Znajder (talk | contribs) (Created page with "__NOTOC__ {{Client function}} The function resets all the data we have previously transmitted and sets to default. ==Syntax== <syntaxhighlight lang="lua"> bool resetDiscordRichPresenceData() </syntaxhighlight> ===Returns=== Returns ''true'' if reset was successfull, ''false'' if the client has disabled synchronisation. ==Example== The example shows if you set up your own application and sample asset and then reset the data. <syntaxhighlight lang="lua"> setDiscordAp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The function resets all the data we have previously transmitted and sets to default.

Syntax

bool resetDiscordRichPresenceData()

Returns

Returns true if reset was successfull, false if the client has disabled synchronisation.

Example

The example shows if you set up your own application and sample asset and then reset the data.

setDiscordApplicationID("you_application_key")
setDiscordRichPresenceAsset("asset_logo", "Name of Asset")
if resetDiscordRichPresenceData()  then -- we reset to default by MTA Application.
    outputChatBox("Discord Rich Presence has been cleared and restored to default settings.")
end

See Also

ADDED/UPDATED IN VERSION 1.6.0 r22270:
ADDED/UPDATED IN VERSION 1.6.0 r22276:
ADDED/UPDATED IN VERSION 1.6.0 r22342: