From ec69f589c8671614c870014bf02634908d232676 Mon Sep 17 00:00:00 2001 From: Ellie Date: Sat, 28 Mar 2026 15:09:49 +0000 Subject: [PATCH] Clear Discord activity before disconnecting --- src/common/presence.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/presence.ts b/src/common/presence.ts index 2f7ad63..735d682 100644 --- a/src/common/presence.ts +++ b/src/common/presence.ts @@ -240,6 +240,7 @@ class ZncDiscordPresenceClient { if (this.rpc) { const client = this.rpc.client; this.rpc = null; + await client.clearActivity(); await client.destroy(); } @@ -251,6 +252,7 @@ class ZncDiscordPresenceClient { if (this.rpc && this.rpc.id !== client_id) { const client = this.rpc.client; this.rpc = null; + await client.clearActivity(); await client.destroy(); }