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:
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
8 Replies
GuikiPT
GuikiPTOP3mo ago
or somehow i eventually manage to add subfolders to commands and it register but is there anyway to use it outside commands?
Seren_Modz 21
Seren_Modz 213mo ago
./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 commands
GuikiPT
GuikiPTOP3mo ago
yeah yeah these worked before
GuikiPT
GuikiPTOP3mo ago
is wha I'm using now
No description
GuikiPT
GuikiPTOP3mo ago
but it can be done recursively outside commands asw?
Solution
čamdžić
čamdžić3mo 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
čamdžić
čamdžić3mo ago
i think this is what you want
GuikiPT
GuikiPTOP3mo ago
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

Did you find this page helpful?