diff --git a/src/commands/train.ts b/src/commands/train.ts index a9af2e6..0eb24bc 100644 --- a/src/commands/train.ts +++ b/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; });