IsDiscordRichPresenceConnected: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} The function check the client has synchronisation with Discord Rich Presence enabled. ==Syntax== <syntaxhighlight lang="lua"> bool isDiscordRichPresenceConnected() </syntaxhighlight> {{OOP||DiscordRPC:isConnected}} ===Returns=== Returns ''true'' if the Discord Rich Presence is enabled on the client, ''false'' if the client has disabled synchronisation. ==Example== This example prints out if the client has enabled Discord Rich Prese...") |
(No difference)
|
Revision as of 18:53, 10 October 2023
The function check the client has synchronisation with Discord Rich Presence enabled.
Syntax
bool isDiscordRichPresenceConnected()
OOP Syntax Help! I don't understand this!
- Method: DiscordRPC:isConnected(...)
Returns
Returns true if the Discord Rich Presence is enabled on the client, false if the client has disabled synchronisation.
Example
This example prints out if 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 )