public void Dispose() { _discordPresenceManager?.Dispose(); _pi.CommandManager.RemoveHandler("/prp"); _pi.Dispose(); }
public void Dispose() { _pi.Framework.OnUpdateEvent -= Framework_OnUpdateEvent; _pi.ClientState.TerritoryChanged -= TerritoryChanged; _discordPresenceManager?.Dispose(); _pi.CommandManager.RemoveHandler("/prp"); _pi.Dispose(); }
public void Dispose() { DalamudPluginInterface.LanguageChanged -= ReregisterCommand; UnregisterCommand(); ClientState.Login -= State_Login; ClientState.TerritoryChanged -= State_TerritoryChanged; ClientState.Logout -= State_Logout; Framework.Update -= UpdateRichPresence; DalamudPluginInterface.UiBuilder.OpenConfigUi -= RichPresenceConfigWindow.Open; DalamudPluginInterface.UiBuilder.Draw -= RichPresenceConfigWindow.DrawRichPresenceConfigWindow; LocalizationManager?.Dispose(); DiscordPresenceManager.ClearPresence(); DiscordPresenceManager?.Dispose(); IpcManager?.Dispose(); }