Variables/Changeable Data in Custom ID's
Someone recently mentioned to me that its bad for maintainability and slows processing speed when you use variables in a custom id, like a button for example.
In a bot I am making I did
create-embed-<channelID>
and it works out great, with no issue that I see from my end or the bots end, but supposedly, I shouldn't be doing it like that, so I want to see what others think/do with their custom ID's.
Is the way I do it wrong? Is there really a wrong way? How do you do it?1 Reply
- 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!