From a4071913d929e3363d8264a1e7c6cc200eae46a9 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 18 Jul 2022 19:32:22 -0500 Subject: [PATCH] fix: change 'addChoice' to 'addChoices' --- src/commands/train.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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; });