private static void ClearPresence() { if (global.presence == null) { // uninitialized return; } global.presence.FreeMem(); global.presence = null; DiscordRpc.ClearPresence(); DiscordRpc.Shutdown(); }
public static void ClearRPC() { if (!IsInitialized) { return; } if (!IsConnected) { return; } HasPresence = false; DiscordRpc.ClearPresence(); }
public void ClearPresence() { Debug.Log("Discord: Cleared Precence!"); DiscordRpc.ClearPresence(); }
public void OnDisable() { Debug.Log("Discord: shutdown"); DiscordRpc.ClearPresence(); DiscordRpc.Shutdown(); }
private void PresenceClear(object sender, RoutedEventArgs e) { Log("[Method] ClearPresence"); DiscordRpc.ClearPresence(); }
void OnDisable() { DiscordRpc.ClearPresence(); DiscordRpc.Shutdown(); }
private void OnRemovePresenceClick(Object sender, EventArgs e) { this.LockRichPresenceButtons(); DiscordRpc.ClearPresence(); }