SetDiscordApplicationID
Jump to navigation
Jump to search
Important Note: To reset the application ID, please use resetDiscordRichPresenceData |
Important Note: In order for the function to work correctly, the user must have their activity privacy/status enabled in Discord. |
Syntax
bool setDiscordApplicationID(string applicationKey)
OOP Syntax Help! I don't understand this!
- Method: DiscordRPC:setApplication(...)
Required arguments
- applicationKey: a string representing your Discord application's key.
Returns
Returns true if function succeeds, false if the client has disabled rich presence.
Example
This example outputs whether the application was successfully setup and sets a custom asset image.
local app_key = "YOUR_APPLICATION_KEY" if setDiscordApplicationID(app_key) then setDiscordRichPresenceAsset("asset_name_from_application") outputChatBox("Yay, we're now using our own application!") end