Checking for flags in message commands
I'm trying to add a
--silent
flag which if present will make the punishment silent (the user won't get a dm). Is this possible through sapphire?Solution:Jump to solution
Sapphire Framework
Using flags | Sapphire
So far we have covered arguments, which are positional - i.e., the order of the arguments matters and they are parsed in
5 Replies
Solution
Sapphire Framework
Using flags | Sapphire
So far we have covered arguments, which are positional - i.e., the order of the arguments matters and they are parsed in
Oh, I didn't see this in the docs. Thanks
Oh yeah, adding on to this, how would u check for a duration string? Smth like 1d or never
https://www.sapphirejs.dev/docs/Guide/arguments/creating-your-own-arguments
Create your own argument to parse it
Sapphire Framework
Creating your own arguments | Sapphire
Creating an argument can be done by extending the Argument class which can be imported from the framework:
Alright ty, thx for the help
Lmao