mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-03-25 03:19:24 +00:00
Fix PlayState compilation crashes
This commit is contained in:
parent
89ee33e9b9
commit
45a5160b06
|
@ -1837,6 +1837,17 @@ class PlayState extends MusicBeatSubState
|
|||
smallImageKey: discordRPCIcon
|
||||
});
|
||||
#end
|
||||
|
||||
#if FEATURE_DISCORD_RPC
|
||||
// Updating Discord Rich Presence.
|
||||
DiscordClient.instance.setPresence(
|
||||
{
|
||||
state: buildDiscordRPCState(),
|
||||
details: buildDiscordRPCDetails(),
|
||||
largeImageKey: discordRPCAlbum,
|
||||
smallImageKey: discordRPCIcon
|
||||
});
|
||||
#end
|
||||
}
|
||||
|
||||
function buildDiscordRPCDetails():String
|
||||
|
|
Loading…
Reference in a new issue