Required options must be placed before non-required options
im trying to register some slash commands, but specifically 2 are failing.
how can i make sure im looking at the right one? i think, one should be this:
but i dont see anything wrong!
11 Replies
- What's your exact discord.js
npm list discord.js and node node -v version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅ Marked as resolved by OPit cannot be the one you show, because that only has a single option
as the error states, two of your commands have a non-required option before a required one
-# also please tell me i'm interpreting this wrong and it's not commands 83 and 98 (please tell me you don't have 98 commands... that's absurd)
i have 103 commands, thats the 98th one 💔
ive been running this ps code:
to retrieve the exact path for all my commands to see which one are 83 and 98
no bot needs that many commands... but yes, then it's probably 83 option 3 and 98 option 1 that are problematic
83
98
ok, now look at them
they dont have issue that my eyes see
true true true false false => not the issue
just one option => not the issue
=> not the right commands
uh i might have found one

yup
great
ill search the other one
thank you