/// <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); }
public void Shutdown() { DiscordRPC.Shutdown(); }
public void UpdatePresence() { DiscordRPC.UpdatePresence(ref presence); }