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:Jump to 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
9 Replies
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
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 filestart the file name with _
but you can also just put it in a different folder.
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 solvedsubpath imports are your friend here
we use @Answer Overflow for marking as solved š
oh, well i don't know how to use @Answer Overflow
but thanks
it uses application commands, right click the message that is the answer -> apps -> mark solution
owww... yea, alright, will do it in the next post
š