Skip to content

Commit

Permalink
chore(ask.builder.ts): fix formatting of choices in slashCommand defi…
Browse files Browse the repository at this point in the history
…nition

chore(ask.cmd.ts): fix formatting of components in command.editReply method
  • Loading branch information
Steellgold committed Jul 26, 2023
1 parent 65f611b commit a50ffdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/commands/ask/ask.builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/commands/ask/ask.cmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a50ffdc

Please sign in to comment.