mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-30 05:28:15 +03:00
Merge branch 'neutralino' of https://gitlab.com/KRypt0n_/an-anime-game-launcher into neutralino
This commit is contained in:
commit
cc6ff31606
2 changed files with 12 additions and 5 deletions
|
@ -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'
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -105,11 +105,14 @@ export default class Launcher
|
|||
id: '901534333360304168',
|
||||
|
||||
// @ts-expect-error
|
||||
details: discord.fields.states[state],
|
||||
details: 'in-game' ? discord.fields.details : discord.fields.states['in-launcher'],
|
||||
|
||||
// @ts-expect-error
|
||||
state: 'in-game' ? ddiscord.fields.states['in-game'] : undefined,
|
||||
|
||||
icon: {
|
||||
// @ts-expect-error
|
||||
large: discord.fields.icon
|
||||
large: state === 'in-launcher' ? 'launcher' : discord.fields.icon
|
||||
},
|
||||
|
||||
time: {
|
||||
|
|
Loading…
Reference in a new issue