Ejemplo n.º 1
0
 /// <summary>
 ///     Initializes Discord RPC
 /// </summary>
 public void Initialize()
 {
     handlers = new DiscordRPC.EventHandlers();
     handlers.readyCallback         = ReadyCallback;
     handlers.disconnectedCallback += DisconnectedCallback;
     handlers.errorCallback        += ErrorCallback;
     DiscordRPC.Initialize(applicationId, ref handlers, true, optionalSteamId);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Initializes Discord RPC
 /// </summary>
 public void Initialize()
 {
     _handlers = new DiscordRPC.EventHandlers {
         readyCallback = ReadyCallback
     };
     _handlers.disconnectedCallback += DisconnectedCallback;
     _handlers.errorCallback        += ErrorCallback;
     DiscordRPC.Initialize(ApplicationId, ref _handlers, true, OptionalSteamId);
 }