isDiscordRichPresenceConnected | Multi Theft Auto: Wiki Skip to content

isDiscordRichPresenceConnected

Client-side
Server-side
Shared

Manual Review Required

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


The function checks if the client has Discord Rich Presence enabled.

OOP Syntax Help! I don't understand this!

Syntax

bool isDiscordRichPresenceConnected ( )

Returns

  • bool: value

Returns true if Discord Rich Presence is enabled on the client, false if disabled.

Code Examples

shared

This example outputs whether the client has enabled Discord Rich Presence.

addCommandHandler("checkdiscord",
function ()
if isDiscordRichPresenceConnected() then
outputChatBox("You are using Discord Rich Presence, that's cool!")
end
end
)