Set the precondition for all commands in a faster way instead of manually set for each command

Is there a faster way to automatically set a specific precondition every time creating new command than use the preconditions option in every command constructor?
Solution:
1. if it's a custom precondition (i.e. one you wrote yourself) set the position option to make it global 2. if it's not a custom precondition (i.e. a built in one) then extend the Command class and use object merging to set it on the custom base class to extend...
Jump to solution
2 Replies
Solution
Favna
Favna2y ago
1. if it's a custom precondition (i.e. one you wrote yourself) set the position option to make it global 2. if it's not a custom precondition (i.e. a built in one) then extend the Command class and use object merging to set it on the custom base class to extend
ac.dev
ac.dev2y ago
thanks
Want results from more Discord servers?
Add your server