- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - 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!
#How do you get interaction data from boolean option?
27 messages · Page 1 of 1 (latest)
and what do you get out of that?
I get either True or False
Ok ok So a boolean can either be true or false
that's what a boolean is
if you don't know what a boolean is, why are you using it? and also, if you don't know that, you probably should brush up on some js basics
Now I want to put that boolen value into a variable
yeah, this is just basic javascript
Yea but this is a splash command
knowing how to make a variable very much doesn't matter what it's used for
When you run the splash command the bot thakes that data and puts in a variable
then do just that
y-yes, but you can change it
This is for a string option not boolean
how clueless are you about what you're doing? if this is your first time ever touching javascript, i really do recommend going through basics firts before trying make a bot
plesse tell me how to get the boollean option
you literally just did it
Oh it was
const boolean = interaction.options.getBoolean('boolean');
yes, the thing you posted in the first message here
No no, It was .getString
i see getBoolean here
and you even answered my question like it was actually the getBoolean
Oh I edited that my bad ig