How to manual disable precondition?
Hi, i made precondition that automatically enabled
but i want to disable it for some commands, i dont know how can i do it, can anyone help me?
Solution:Jump to solution
i'd rather creating new instance
```ts
declare module "@sapphire/framework" {
interface CommandOptions {...
8 Replies

Maybe in run method of precondition you can have array of command names
And if that command is executed you can just say return this.ok()
Solution
i'd rather creating new instance
Uh I don’t see where you use CommandOptions here
Can u show where did u put CommandOptions interface
my bad
sorry
That’s okay
I do it this way
One sec
Then I just augment it
And use in precondition like you
Basically I extend GarfieldCommand instead of sapphire’s Command class
yeah that would work
did it work?
Yeah
It’s type safe and works really good