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
d.js toolkit
d.js toolkit•2mo 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
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Shrewd 💫
Shrewd 💫•2mo ago
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
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Shrewd 💫
Shrewd 💫•2mo ago
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
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Shrewd 💫
Shrewd 💫•2mo ago
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
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs•2mo ago
:guide: Creating Your Bot: Command handling read more
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Shrewd 💫
Shrewd 💫•2mo ago
Mind being more precise, I'm just so messed up with these collectors
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Shrewd 💫
Shrewd 💫•2mo ago
Oh wait you said collection, I misread it Nonetheless, how would you suggest I'd use collections again?
Unknown User
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
Shrewd 💫
Shrewd 💫•2mo ago
Alrighty Ill see what I can do, thank you for your help