Can you parse and return components?
I had a button action row working just fine
But I wanted to centralise some code so I tried to make a function to create the button action rows and return them for later use
I can log the return of the action row fine:
But I get this error when trying to send them
5 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!Unknown User•11mo ago
Message Not Public
Sign In & Join Server To View
Normally I do stay to one channel, I run a support server myself. Wasn't sure if that was more of a chat channel so switched over to a forum
Honestly... I added in the logs to send your way and it started working. Idk why, idk what I changed... I've been going in circles for hours troubleshooting line by line... 🤷♂️
You must be my good luck charm idk
Unknown User•11mo ago
Message Not Public
Sign In & Join Server To View
I added logs at every stage, switched the logic in the for each loop, lowered my array to 1 object... I'd tried everything I could think of.
But I appreciate your time