isDiscordRichPresenceConnected | Multi Theft Auto: Wiki Skip to content

isDiscordRichPresenceConnected

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.


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

Syntax

isDiscordRichPresenceConnected ( )

Code Examples

client

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
)