mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-08-22 18:45:00 -05:00
Clear Discord activity before disconnecting
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user