Can I create or change commands folder location?
Hello I kinda wanted to know if it's possible to change the commands file locations, like instead being in
./src/commands/ping.js
, to be in ./src/commands/information/ping.js
or ./src/plugins/information/commands/ping.js
Solution:Jump to 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
8 Replies
or somehow i eventually manage to add subfolders to commands and it register
but is there anyway to use it outside commands?
./src/commands/information/ping.js
will work because sapphire looks for files recursively. i categorise my bots commands like this also.
for ^, you don't need to change anything in your code - just move ping,js into an information directory/folder within commandsyeah yeah these worked before
is wha I'm using now

but it can be done recursively outside commands asw?
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
i think this is what you want
Well will give a look tomorrow, thx I will mark these as solved since first impression from docs it really seems like what I wanted