How do i use "separators" command in sapphire?

Hi! Im new at sapphire/framework, i was reading the docs and seeing there is a separators options at Command my question is, how do i use the separators command option and how to get the key from it?
Solution:
You only customize the separators option if you have a very specific niche use case for customizing it. It is part of Options and defaults to one of = or :. If you want to know the current value (which will be ['=', ':'] by default) you can use this.options.separators
Sapphire Framework
Using options | Sapphire
Now that we've gone over boolean flags, what if we want a string instead of a boolean value? That's where options come
Jump to solution
9 Replies
Solution
Favna
Favnaā€¢10mo ago
You only customize the separators option if you have a very specific niche use case for customizing it. It is part of Options and defaults to one of = or :. If you want to know the current value (which will be ['=', ':'] by default) you can use this.options.separators
Sapphire Framework
Using options | Sapphire
Now that we've gone over boolean flags, what if we want a string instead of a boolean value? That's where options come
Intan
IntanOPā€¢10mo ago
i see anyway, can sapphire ignore a file inside commands folder? for example, i want to make a function seperate from play command file inside the commands folder, and sapphire will ignore that function file
Favna
Favnaā€¢10mo ago
start the file name with _ but you can also just put it in a different folder.
Intan
IntanOPā€¢10mo ago
I see, well yes i can just made it in different folder, but i just want to make it more simple, so i don't need to import it like ../../.. and also, thank you very much i'll mark this as solved
Favna
Favnaā€¢10mo ago
subpath imports are your friend here
Favna
Favnaā€¢10mo ago
we use @Answer Overflow for marking as solved šŸ™‚
Intan
IntanOPā€¢10mo ago
oh, well i don't know how to use @Answer Overflow but thanks
Favna
Favnaā€¢10mo ago
it uses application commands, right click the message that is the answer -> apps -> mark solution
Intan
IntanOPā€¢10mo ago
owww... yea, alright, will do it in the next post šŸ‘
Want results from more Discord servers?
Add your server