fix: typos

This commit is contained in:
TrèsAbhi committed 2024-03-09 12:10:44 -06:00
1 parent 8d5e78a510
commit 43adaf85f5
2 files changed
+11 -8

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ export const permissionsCommand = new Promise<CommandRegistry>((resolve) => {
const permissions = [ const permissions = [
[ [
interaction.appPermissions?.has('ViewChannel'), interaction.appPermissions?.has('ViewChannel'),
t`bot.commands.permissions.body.view_channel`, t`bot.commands.permissions.body.view_channels`,
], ],
[ [
interaction.appPermissions?.has('ReadMessageHistory'), interaction.appPermissions?.has('ReadMessageHistory'),
+10 -7
View File
@@ -24,18 +24,21 @@ export const playerInfoCommand = new Promise<CommandRegistry>((resolve) => {
const accountInfo = await getAccountInfo(region, id); const accountInfo = await getAccountInfo(region, id);
return embedInfo( return embedInfo(
translate('bot.command.player_info.body.title', [ translate('bot.commands.player_info.body.title', [
markdownEscape(accountInfo.nickname), markdownEscape(accountInfo.nickname),
]), ]),
markdownTable([ 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}`, `${accountInfo.statistics.all.battles}`,
], ],
[ [
t`bot.command.player_info.body.winrate`, t`bot.commands.player_info.body.winrate`,
`${( `${(
100 * 100 *
(accountInfo.statistics.all.wins / (accountInfo.statistics.all.wins /
@@ -44,17 +47,17 @@ export const playerInfoCommand = new Promise<CommandRegistry>((resolve) => {
], ],
[], [],
[ [
t`bot.command.player_info.body.account_id`, t`bot.commands.player_info.body.account_id`,
`${accountInfo.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( new Date(accountInfo.created_at * 1000).toLocaleDateString(
interaction.locale, 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( new Date(accountInfo.last_battle_time * 1000).toLocaleDateString(
interaction.locale, interaction.locale,
), ),