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β€’2w 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β€’2w 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/
.izonit?
.izonit?β€’2w 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 πŸŒˆβ€’2w ago
Short answer: no Longer answer: Use sapphirejs, as mentioned by @Svitkona
.izonit?
.izonit?β€’2w ago
Okay, thanks