Slash Command Parsing

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
4 Replies
d.js toolkit
d.js toolkit9mo ago
- 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!
Lumi Doggo
Lumi Doggo9mo ago
ah, and before I forget, here's the code snippet. https://pastebin.com/7vSHBkW4
Pastebin
Doggo_Code - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
mallusrgreat
mallusrgreat9mo ago
the only other way is raw json, and it is definitely not better
Lumi Doggo
Lumi Doggo9mo ago
oof- Being honest, it feels clumsy, and cluttered, and I'm attempting to also include into said command a way that it can see the first, and last string between the command, and the first integer, or the first, second and last string between the command and the first integer so it can determine the "name" of the "character"