Random
Making a slashcommand having multiple possible answer and making them completly different ( like 5 choices ) BUT it don't repeat the previous ones, and when it say the last one, it reset. and re randomize 5.
12 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 staffi'm on the last discord.js version, and i have no clue for how to do this, even with the docs
so what's your problem? where are you stuck?
i have no clue of how to make it
what is IT? do you have trouble with making slash command or making random answers or anyhting else?
Making random answers, and not repeating the previous ones until he already sent them all, then it reset
quick answer:
interaction.reply( anyhtingYouWantToSendAsResponseToThatCommand)
. the way you will get random answers is not d.js relatedso there is no way to do the 'random' thing? @waseeeen
like this
but it don't work
( found it on internet. )
discord bot is the way to input and output data to and from your program. same as when you create CLI application, you provide some input to command line, YOUR program does some magic with that input and answers to you
Oh
i see
the logic between and is not discord related at all
🤔
so you can't help me ?