Code organisation

Does discord.js have a feature like Composer in Telegraf (the library to make Telegram bots)? I don't think so (or at least I don't know). It would be cool to have such a feature that helps organising code into files without implementing command and/or event handlers. Please let me know if there is something like that by tagging me, thanks!
5 Replies
d.js toolkit
d.js toolkit•5mo 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
Svitkona
Svitkona•5mo ago
djs is a fairly thin wrapper around the gateway/API if you want something more full-fledged (and opinionated), you'd be looking for a framework like sapphire https://sapphirejs.dev/
mizorint
mizorint•5mo ago
Okay, I'd try it out. But still, I don't count this topic as solved I would like to see if there are any solutions in discord.js itself, without using any frameworks.
chewie
chewie•5mo ago
Short answer: no Longer answer: Use sapphirejs, as mentioned by @Svitkona
mizorint
mizorint•5mo ago
Okay, thanks
Want results from more Discord servers?
Add your server