ResetDiscordRichPresenceData: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{New feature/item|3. | {{New feature/item|3.0161|1.6.0|22270| | ||
The function resets the Discord Rich Presence configuration to default. | The function resets the Discord Rich Presence configuration to default. | ||
}} | }} | ||
Revision as of 22:12, 11 October 2023
Syntax
bool resetDiscordRichPresenceData()
Returns
Returns true if function succeeds, false otherwise.
Example
The example shows how to reset Discord Rich Presence after using a custom application.
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