Browse Source

fix: change 'addChoice' to 'addChoices'

development
Abheek Dhawan 2 years ago
parent
commit
a4071913d9
Signed by: abheekd GPG Key ID: 7BE81B8C14475B67
  1. 16
      src/commands/train.ts

16
src/commands/train.ts

@ -17,13 +17,15 @@ export const data = new SlashCommandBuilder()
.setName('subject')
.setDescription('Optional subject to be used as a filter')
.setRequired(false)
.addChoice('astro', 'astro')
.addChoice('bio', 'bio')
.addChoice('ess', 'ess')
.addChoice('chem', 'chem')
.addChoice('phys', 'phys')
.addChoice('math', 'math')
.addChoice('energy', 'energy')
.addChoices(
{ name: 'astro', value: 'astro' },
{ name: 'bio', value: 'bio' },
{ name: 'chem', value: 'chem' },
{ name: 'ess', value: 'ess' },
{ name: 'phys', value: 'phys' },
{ name: 'math', value: 'math' },
{ name: 'energy', value: 'energy' },
)
.setRequired(false);
return option;
});

Loading…
Cancel
Save