diff --git a/src/commands/permissions.ts b/src/commands/permissions.ts index 186119f29..c2916f13f 100644 --- a/src/commands/permissions.ts +++ b/src/commands/permissions.ts @@ -17,7 +17,7 @@ export const permissionsCommand = new Promise((resolve) => { const permissions = [ [ interaction.appPermissions?.has('ViewChannel'), - t`bot.commands.permissions.body.view_channel`, + t`bot.commands.permissions.body.view_channels`, ], [ interaction.appPermissions?.has('ReadMessageHistory'), diff --git a/src/commands/playerInfo.ts b/src/commands/playerInfo.ts index f9db1c97f..cbb6b2cb4 100644 --- a/src/commands/playerInfo.ts +++ b/src/commands/playerInfo.ts @@ -24,18 +24,21 @@ export const playerInfoCommand = new Promise((resolve) => { const accountInfo = await getAccountInfo(region, id); return embedInfo( - translate('bot.command.player_info.body.title', [ + translate('bot.commands.player_info.body.title', [ markdownEscape(accountInfo.nickname), ]), markdownTable([ - [t`bot.command.player_info.body.nickname`, `${accountInfo.nickname}`], [ - t`bot.command.player_info.body.battles`, + t`bot.commands.player_info.body.nickname`, + `${accountInfo.nickname}`, + ], + [ + t`bot.commands.player_info.body.battles`, `${accountInfo.statistics.all.battles}`, ], [ - t`bot.command.player_info.body.winrate`, + t`bot.commands.player_info.body.winrate`, `${( 100 * (accountInfo.statistics.all.wins / @@ -44,17 +47,17 @@ export const playerInfoCommand = new Promise((resolve) => { ], [], [ - t`bot.command.player_info.body.account_id`, + t`bot.commands.player_info.body.account_id`, `${accountInfo.account_id}`, ], [ - t`bot.command.player_info.body.created`, + t`bot.commands.player_info.body.created`, new Date(accountInfo.created_at * 1000).toLocaleDateString( interaction.locale, ), ], [ - t`bot.command.player_info.body.last_battle`, + t`bot.commands.player_info.body.last_battle`, new Date(accountInfo.last_battle_time * 1000).toLocaleDateString( interaction.locale, ),