public static void Initialize(string ApplicationID, DiscordEventHandlers handlers, int autoRegister, string SteamID) { IntPtr AppID = ConvertString(ApplicationID); IntPtr Steam = ConvertString(SteamID); RPC.Discord_Initialize(AppID, ref handlers, autoRegister, Steam); Discord.handlers = handlers; FreePointers(AppID, Steam); }
internal static extern void Discord_Initialize(IntPtr applicationId, ref DiscordEventHandlers handlers, int autoRegister, IntPtr optionalSteamId);
public static Task InitializeAsync(string ApplicationID, DiscordEventHandlers handlers, int autoRegister, string SteamID) { Initialize(ApplicationID, handlers, autoRegister, SteamID); return(Task.FromResult(0)); }