From 8703e95d712791b91560929a771c03b12a013dc4 Mon Sep 17 00:00:00 2001 From: NextFire Date: Mon, 19 Aug 2024 11:47:51 +0200 Subject: [PATCH] feat: set "listening to" activity type Fix #85 --- music-rpc.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/music-rpc.ts b/music-rpc.ts index d5efa73..5a5c91e 100755 --- a/music-rpc.ts +++ b/music-rpc.ts @@ -254,6 +254,8 @@ async function setActivity(rpc: Client): Promise { // EVERYTHING must be less than or equal to 128 chars long const activity: Activity = { + // @ts-ignore: "listening to" is allowed in recent Discord versions + type: 2, details: formatStr(props.name), timestamps: { end }, assets: { large_image: "appicon" },