From a916a8d98a49c599bf5b50887df50c8e82852ea0 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 15 Jul 2021 12:48:00 -0500 Subject: [PATCH] Attempt to limit subject choices --- bot/awesomescibo.js | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index f04cdea..bc2e967 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -26,7 +26,37 @@ const slashCommands = [ "name": "subject", "description": "Optional subject to be used as a filter", "default": false, - "required": false + "required": false, + "choices": [ + { + "name": "astro", + "value": "astro", + }, + { + "name": "bio", + "value": "bio", + }, + { + "name": "ess", + "value": "ess", + }, + { + "name": "chem", + "value": "chem", + }, + { + "name": "phys", + "value": "phys", + }, + { + "name": "math", + "value": "math", + }, + { + "name": "energy", + "value": "energy", + } + ] } ] },