What are some ways to make your code more neat and organized?

For example, slash commands. Is there a way to neatly organize what I've got going on here? Especially the
.awaitMessageComponent
.awaitMessageComponent
, I have at least two of them here and it feels like there is a potential better way of using them for cleaner code.
2 Replies
d.js toolkit
d.js toolkit2mo ago
- 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 OP
Swyftey
Swyftey2mo ago
Alright Good to know, thanks