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:Jump to solution
is that what you're looking for? https://www.sapphirejs.dev/docs/Guide/additional-information/registering-custom-paths-for-a-store/
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
4 Replies
Solution
is that what you're looking for? https://www.sapphirejs.dev/docs/Guide/additional-information/registering-custom-paths-for-a-store/
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
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
You can register multiple folders with
registerPath
, yes. Otherwise also remember that Sapphire can load pieces of any type recursively.Alright, thanks