From f1d39c61a7238618d5e196601e83431b58a16362 Mon Sep 17 00:00:00 2001 From: Maroxy Date: Wed, 5 Jan 2022 00:19:33 +0100 Subject: [PATCH] Update discord --- src/ts/Launcher.ts | 4 ++-- src/ts/core/DiscordRPC.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ts/Launcher.ts b/src/ts/Launcher.ts index 9623b3f..7e1ca79 100644 --- a/src/ts/Launcher.ts +++ b/src/ts/Launcher.ts @@ -108,11 +108,11 @@ export default class Launcher details: 'in-game' ? discord.fields.details : discord.fields.states['in-launcher'], // @ts-expect-error - state: 'in-game' ? ddiscord.fields.states['in-game'] : undefined, + state: 'in-game' ? discord.fields.states['in-game'] : undefined, icon: { // @ts-expect-error - large: state === 'in-launcher' ? 'launcher' : discord.fields.icon + large: state == 'in-launcher' ? 'launcher' : discord.fields.icon }, time: { diff --git a/src/ts/core/DiscordRPC.ts b/src/ts/core/DiscordRPC.ts index f062e2b..e488a6d 100644 --- a/src/ts/core/DiscordRPC.ts +++ b/src/ts/core/DiscordRPC.ts @@ -14,7 +14,7 @@ export default class DiscordRPC this.params = params; let exec = [ - `${NL_CWD}/public/discord-rpc/discord-rpc`, + `"${NL_CWD}/public/discord-rpc/discord-rpc"`, `-a ${params.id}` ];