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 = [
[
interaction.appPermissions?.has('ViewChannel'),
t`bot.commands.permissions.body.view_channel`,
t`bot.commands.permissions.body.view_channels`,
],
[
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);
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<CommandRegistry>((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,
),