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:
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
Jump to solution
5 Replies
Solution
Favna
Favna11mo ago
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
dan
danOP11mo ago
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
Favna
Favna11mo ago
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:
dan
danOP11mo ago
Alright ty, thx for the help
dan
danOP11mo ago
Lmao
Want results from more Discord servers?
Add your server