Display a random button array
Hello,
I created several buttons in a file, then put them in an array to mix them up for random output.
Random works fine, but when I want to display this button array under an embed, it doesn't work. I get an error (view picture).
I've been looking for a few days, but I can't figure out how to do it.
- node.js v20.10.0
- discordjs v8.15.6

4 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 OParraySpells already an array

so u dont need to make it another array
.addComponents(arraySpeels) ✅
God... I'm dumb. 🤣 Thank guy. :8emojinude15: