From cce199a0eda4fe24839d60a1d031648dfd07fc86 Mon Sep 17 00:00:00 2001 From: mezotv Date: Mon, 11 Dec 2023 01:31:16 +0000 Subject: [PATCH] chore(style): format files --- src/buttons/voting.ts | 4 ++-- src/buttons/wycustom_add.ts | 16 ++++++++-------- src/commands/settings/custom.ts | 16 ++++++++-------- src/commands/utility/help.ts | 8 ++++---- src/util/Functions/fileToCollection.ts | 8 ++++---- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/buttons/voting.ts b/src/buttons/voting.ts index 930bd6b1..a6e9c482 100644 --- a/src/buttons/voting.ts +++ b/src/buttons/voting.ts @@ -14,8 +14,8 @@ const button: Button = { ? "Option 1" : "Option 2" : customId[3] == 0 || customId[2] == 0 - ? '"have done this"' - : '"have not done this"' + ? '"have done this"' + : '"have not done this"' }.`, ephemeral: true, }); diff --git a/src/buttons/wycustom_add.ts b/src/buttons/wycustom_add.ts index fcfdaaa3..e6d0381f 100644 --- a/src/buttons/wycustom_add.ts +++ b/src/buttons/wycustom_add.ts @@ -32,14 +32,14 @@ const button: Button = { "wyCustom.success.embedAdd.descWYR", ) : data?.type === "wwyd" - ? client.translation.get( - guildDb?.language, - "wyCustom.success.embedAdd.descWWYD", - ) - : client.translation.get( - guildDb?.language, - "wyCustom.success.embedAdd.descNHIE", - ), + ? client.translation.get( + guildDb?.language, + "wyCustom.success.embedAdd.descWWYD", + ) + : client.translation.get( + guildDb?.language, + "wyCustom.success.embedAdd.descNHIE", + ), }, )}\n\n**${client.translation.get( guildDb?.language, diff --git a/src/commands/settings/custom.ts b/src/commands/settings/custom.ts index 471b165d..ee07b884 100644 --- a/src/commands/settings/custom.ts +++ b/src/commands/settings/custom.ts @@ -181,14 +181,14 @@ const command: ChatInputCommand = { "wyCustom.success.embedAdd.descWYR", ) : generativeText?.type === "wwyd" - ? client.translation.get( - guildDb?.language, - "wyCustom.success.embedAdd.descWWYD", - ) - : client.translation.get( - guildDb?.language, - "wyCustom.success.embedAdd.descNHIE", - ), + ? client.translation.get( + guildDb?.language, + "wyCustom.success.embedAdd.descWWYD", + ) + : client.translation.get( + guildDb?.language, + "wyCustom.success.embedAdd.descNHIE", + ), }, )}\n\n` : "" diff --git a/src/commands/utility/help.ts b/src/commands/utility/help.ts index 6c8b066a..1f3cd549 100644 --- a/src/commands/utility/help.ts +++ b/src/commands/utility/help.ts @@ -66,10 +66,10 @@ const command: ChatInputCommand = { type === "de" ? n.descriptionLocalizations.de : type === "es" - ? n.descriptionLocalizations["es-ES"] - : type === "fr" - ? n.descriptionLocalizations.fr - : n.description + ? n.descriptionLocalizations["es-ES"] + : type === "fr" + ? n.descriptionLocalizations.fr + : n.description }`, ) .join("\n")}`, diff --git a/src/util/Functions/fileToCollection.ts b/src/util/Functions/fileToCollection.ts index 39c19552..9b9bb87c 100644 --- a/src/util/Functions/fileToCollection.ts +++ b/src/util/Functions/fileToCollection.ts @@ -24,8 +24,8 @@ export async function fileToCollection< (resp.default as Command).data != undefined ? (resp.default as Command).data.name : Boolean((resp.default as Event).event) - ? (resp.default as Event).event - : (resp.default as Interaction).name, + ? (resp.default as Event).event + : (resp.default as Interaction).name, resp.default, ); }, @@ -43,8 +43,8 @@ export async function fileToCollection< (resp.default as Command).data != undefined ? (resp.default as Command).data.name : Boolean((resp.default as Event).event) - ? (resp.default as Event).event - : (resp.default as Interaction).name, + ? (resp.default as Event).event + : (resp.default as Interaction).name, resp.default, ); },