Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

DylanK
DylanK11/29/2022
Can you have folders for commands in SapphireJS

Hey there, by any chance is it possible to have folders for different types of commands on my bot?
What I mean:
So you see how you have the commands folder in your root/whatever-folder-you-are-using
is it possible to store commands in different folders within the commands folder?
e.g:
Commands >
infoCommands >
userInfo.ts
serverInfo.ts
moderationCommands >
ban.ts
kick.ts
timeout.ts

By now I hope you get the gist of what I'm trying to do/say here, so any help would be appreciated.
Thanks in advance!!

(By the way if you need help with what type of version of sapphire I'm using, I'm on framework beta pr-512)

Solution Message

RealShadowNova
RealShadowNova11/29/2022
Yes, Sapphire recursively searches in the commands folder, or any pieces related folder.
24
2411/29/2022
Yes
DylanK
DylanK11/29/2022
Oh, thanks guys!!
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy