PreMessageCommandRun Event
Is there a way of stopping the command from running as I've tried everything and nothing works
11 Replies
Use preconditions
<:_:746069730170896405> Sapphire guide results:
User Guide / What are preconditions and how do they work?
I don't wanna be adding and removing preconditions constantly ngl
wdym
basically I'm implementing a blacklist system so I don't wanna be adding a Blacklist precondition every time
Same goes for my development mode lock, I dont wanna add a precontion every time to check if a user is a developer
you dont seem to understand preconditions. You add them and then in that precondition you do your checks. And you return if they pass or not.
If you read the guide it will make more sense
Ik what they are and how they work
what I mean is
I don't wanna be adding them to all the commands
aka adding them here
preconditions can be configured to be global
simply add
position: ...
in its constructor parametersSapphire Framework
Global preconditions | Sapphire
Sometimes you want a precondition that automatically runs for every command, without having to add it to each command.
ahh alr I see
thanks