From 5748cfb5ad7dcb9063e6b8824aa4c0c40e9e578f Mon Sep 17 00:00:00 2001 From: Maroxy Date: Wed, 5 Jan 2022 00:08:39 +0100 Subject: [PATCH] Add back details for more customization like in old launcher --- src/defaultSettings.ts | 10 +++++++--- src/ts/Launcher.ts | 5 ++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/defaultSettings.ts b/src/defaultSettings.ts index 9fab555..0bbd08f 100644 --- a/src/defaultSettings.ts +++ b/src/defaultSettings.ts @@ -82,7 +82,11 @@ promisify(async () => { */ fields: { /** - * Small messages after title + * Small message after title (only in game) + */ + details: 'Exploring the landscape of', + /** + * Small message after details */ states: { /** @@ -91,9 +95,9 @@ promisify(async () => { 'in-launcher': 'Preparing to launch', /** - * Message showed when you're in game + * Message shows when your in game */ - 'in-game': 'Playing the game' + 'in-game': 'Teyvat' }, /** diff --git a/src/ts/Launcher.ts b/src/ts/Launcher.ts index 55d3570..1b67d9b 100644 --- a/src/ts/Launcher.ts +++ b/src/ts/Launcher.ts @@ -103,9 +103,12 @@ export default class Launcher this.rpc = new DiscordRPC({ id: '901534333360304168', + + // @ts-expect-error + details: 'in-game' ? discord.fields.details : undefined, // @ts-expect-error - details: discord.fields.states[state], + state: discord.fields.states[state], icon: { // @ts-expect-error