Mutil-server support
Hey so yeah, well, it is pretty basic question but could anyone navigate me how should I structurize folders/files or something for a bot that would have to support few servers, one with each different commands? I mean I have done few like those but my problem is that Im getting lost in the files, theres just so much to navigate and well, im pretty sure there are people that have found a better way to organize it all
15 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!
- ✅
Marked as resolved by OPUnknown User•8mo ago
Message Not Public
Sign In & Join Server To View
It'll handle around 3-4 servers, so yeah, it needs specific commands but I felt like asking how people prefer to organize it all
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
So I should just extend interactionCreate to handle subfolders over commands folder right and have deploy-commands deploy it to every guild specified
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Sure, I got one more question though, about modal handling and all that
Do you have any advice on how to organize it, modularize, whatever works best
I just don't feel comfortable writing it all only in interactionCreate
Given there will be lots of stuff that will need to be handled, primarily buttons & modals
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Mind being more precise, I'm just so messed up with these collectors
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Oh wait you said collection, I misread it
Nonetheless, how would you suggest I'd use collections again?
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Alrighty Ill see what I can do, thank you for your help