Registering multiple paths for pieces

I was wondering if it's possible to register multiple paths for sapphire's pieces (commands, listeners, preconditions, etc). The reason why I want to do this is because I override most of the core listeners to add my bot's customization options and I wanted to separate them
Solution:
Sapphire Framework
Registering custom paths for a store | Sapphire
While Sapphire sets specific folder names for the stores, you may want to use different folder names. Sapphire enables
Jump to solution
4 Replies
Solution
KaydaFox
KaydaFox3mo ago
Sapphire Framework
Registering custom paths for a store | Sapphire
While Sapphire sets specific folder names for the stores, you may want to use different folder names. Sapphire enables
dan
dan3mo ago
I already knew about this and I am currently using it, however I thought you could only set one custom path, but from another look it seems u can register multiple paths for a store Because It says to also recognize the folder {folder}, which I'm assuming means you can register multiple of them
kyra
kyra3mo ago
You can register multiple folders with registerPath, yes. Otherwise also remember that Sapphire can load pieces of any type recursively.
dan
dan3mo ago
Alright, thanks
Want results from more Discord servers?
Add your server