Discord Rich Presence

This commit is contained in:
KadeDev
2021-03-21 19:05:45 -07:00
parent b215f5bf2a
commit 64a72cbe13
7 changed files with 225 additions and 0 deletions

View File

@ -10,6 +10,11 @@ import flixel.text.FlxText;
import flixel.util.FlxColor;
import lime.utils.Assets;
#if desktop
import Discord.DiscordClient;
#end
using StringTools;
class FreeplayState extends MusicBeatState
@ -47,6 +52,11 @@ class FreeplayState extends MusicBeatState
}
*/
#if desktop
// Updating Discord Rich Presence
DiscordClient.changePresence("In the Menus", null);
#end
var isDebug:Bool = false;
#if debug