#Slash Command Parsing

8 messages · Page 1 of 1 (latest)

finite horizon
#

Good morning, afternoon, and night to those it applies to. I'm attempting to make a slash command that can take a rather long string that includes Strings, Integers and Booleans, optional or not, and take said data onto a database.

The option that I'm currently using is a new SlashCommandBuilder() with a long slew of methods after it to oddly specify said command. I'm wondering if there's a better way to do this...

Node version: 16.13.0
Discord JS: 13.16.0

oak bridgeBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
finite horizon
restive hare
#

the only other way is raw json, and it is definitely not better

oak folio
#

That looks like it‘s a rather clean and good command, what don’t you like about it

finite horizon
oak folio
#

that’s what the name options are for, no?