Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 internal static extern void Discord_Initialize(IntPtr applicationId, ref DiscordEventHandlers handlers, int autoRegister, IntPtr optionalSteamId);
Exemplo n.º 3
0
 public static Task InitializeAsync(string ApplicationID, DiscordEventHandlers handlers, int autoRegister, string SteamID)
 {
     Initialize(ApplicationID, handlers, autoRegister, SteamID);
     return(Task.FromResult(0));
 }