Discord Functions
Functions for working with Discord Rich Presence.
changeDiscordPresence
changeDiscordPresence(details:String = 'In the Menus',
?state:String,
?smallImageKey:String,
?hasStartTimestamp:Bool,
?endTimestamp:Float,
?largeImageKey:String):Void
Change Discord Rich Presence current details, allows you to also set up a timestamp for a timer.
- details - Title of the Rich Presence.
- state (Optional) - An optional subtitle for the Rich Presence.
- smallImageKey (Optional) - Small/Secondary Icon, normally used for having the Opponent's Health Icon on Rich Presence.
- hasStartTimestamp (Optional) - Shows a time counter in the Rich Presence.
- endTimestamp (Optional) - Requires "hasStartTimestamp" to be "true", counts down starting from this time (in milliseconds).
- largeImageKey (Optional) - Rich Presence Main icon.
Examples:
- changeDiscordPresence('Waiting...') - Change RPC to "Waiting...", with no subtitles or anything.
- changeDiscordPresence('Counting Down...', 'Three. Two. One. GO!', 'gf', true, 3000) - Counts down 3 seconds (3000ms)
Note: To upload custom images to use on "smallImageKey" and "largeImageKey" you will need to change the Application ID.
changeDiscordClientID
changeDiscordClientID(?newID:String):Void
Changes Discord Rich Presence's Application ID, necessary to change the "Psych Engine" Logo from the RPC.
Examples:
- changeDiscordClientID() - Set Discord Client ID to Psych Engine's default.
- changeDiscordClientID('843895042442657792') - Set Discord Client ID to Mind Games Mod's.