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') .setName('subject')
.setDescription('Optional subject to be used as a filter') .setDescription('Optional subject to be used as a filter')
.setRequired(false) .setRequired(false)
.addChoice('astro', 'astro') .addChoices(
.addChoice('bio', 'bio') { name: 'astro', value: 'astro' },
.addChoice('ess', 'ess') { name: 'bio', value: 'bio' },
.addChoice('chem', 'chem') { name: 'chem', value: 'chem' },
.addChoice('phys', 'phys') { name: 'ess', value: 'ess' },
.addChoice('math', 'math') { name: 'phys', value: 'phys' },
.addChoice('energy', 'energy') { name: 'math', value: 'math' },
{ name: 'energy', value: 'energy' },
)
.setRequired(false); .setRequired(false);
return option; return option;
}); });

Loading…
Cancel
Save