From 60cdf66a580144546c92ab113d7b375ebf742c31 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Wed, 5 Jan 2022 00:11:39 +0100 Subject: [PATCH] Actually properly use discord rpc --- src/ts/Launcher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ts/Launcher.ts b/src/ts/Launcher.ts index 1b67d9b..9623b3f 100644 --- a/src/ts/Launcher.ts +++ b/src/ts/Launcher.ts @@ -105,10 +105,10 @@ export default class Launcher id: '901534333360304168', // @ts-expect-error - details: 'in-game' ? discord.fields.details : undefined, + details: 'in-game' ? discord.fields.details : discord.fields.states['in-launcher'], // @ts-expect-error - state: discord.fields.states[state], + state: 'in-game' ? ddiscord.fields.states['in-game'] : undefined, icon: { // @ts-expect-error