Actually properly use discord rpc

This commit is contained in:
Maroxy 2022-01-05 00:11:39 +01:00
parent 5748cfb5ad
commit 60cdf66a58
No known key found for this signature in database
GPG key ID: F4B27EADB21E3021

View file

@ -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