From a50ffdce052c5c81e1c66e84d29aa680de834a7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20H?= Date: Wed, 26 Jul 2023 17:39:34 +0200 Subject: [PATCH] chore(ask.builder.ts): fix formatting of choices in slashCommand definition chore(ask.cmd.ts): fix formatting of components in command.editReply method --- src/commands/ask/ask.builder.ts | 4 ++-- src/commands/ask/ask.cmd.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/ask/ask.builder.ts b/src/commands/ask/ask.builder.ts index 2ac6f43..dc61abd 100644 --- a/src/commands/ask/ask.builder.ts +++ b/src/commands/ask/ask.builder.ts @@ -22,8 +22,8 @@ export const slashCommand: SlashCommandDefition = new SlashCommandBuilder() .setDescriptionLocalizations(ask.options.model.description) .setRequired(false) .addChoices( - { name: "GPT 3.5 Turbo", value: "gpt-3.5-turbo"}, - { name: "GPT 4", value: "gpt-4"} + { name: "GPT 3.5 Turbo", value: "gpt-3.5-turbo" }, + { name: "GPT 4", value: "gpt-4" } )) .addStringOption(new SlashCommandStringOption() .setName("context") diff --git a/src/commands/ask/ask.cmd.ts b/src/commands/ask/ask.cmd.ts index 336897d..f42c27c 100644 --- a/src/commands/ask/ask.cmd.ts +++ b/src/commands/ask/ask.cmd.ts @@ -35,7 +35,7 @@ export const execute: CommandExecute = async(command, user) => { if (model !== "gpt-3.5-turbo" && user.isPremium === false) { const premiumEmbed = simpleEmbed(translate(command.locale, global.exec.orGetPremiumGPT4), "premium"); - command.editReply({ embeds: [premiumEmbed], components: [{ type: 1, components: [premiumButton(command)]}] }); + command.editReply({ embeds: [premiumEmbed], components: [{ type: 1, components: [premiumButton(command)] }] }); return; }