fix compiling with discord off

This commit is contained in:
⍚~Nex
2024-03-26 02:37:01 +01:00
parent 0c06bf73b3
commit 13d4d3e8d7
@@ -31,11 +31,13 @@ class DiscordUtil
public static var script:Script;
// Constants
#if DISCORD_RPC
public static var REPLY_NO:Int = Discord.REPLY_NO;
public static var REPLY_YES:Int = Discord.REPLY_YES;
public static var REPLY_IGNORE:Int = Discord.REPLY_IGNORE;
public static var PARTY_PRIVATE:Int = Discord.PARTY_PRIVATE;
public static var PARTY_PUBLIC:Int = Discord.PARTY_PUBLIC;
#end
public static function init()
{
@@ -408,6 +410,7 @@ final class DUser
{
}
#if DISCORD_RPC
public static function initRaw(req:cpp.RawConstPointer<DiscordUser>)
{
return init(cpp.ConstPointer.fromRaw(req).ptr);
@@ -431,6 +434,7 @@ final class DUser
d.handle = '${d.username}';
return d;
}
#end
/**
* Calling this function gets the BitmapData of the user