commandDenied Event not Fired
All is in the title (and the file is loaded because I tried to put a console.log in the constructor and it was printed)
I have a command with a cooldown and when the cooldown is reached, I get "App not responding" but nothing in console (My run() only console.log the params)
Solution:Jump to solution
I’m pretty sure you need the listener to be listening to the “chatInputCommandDenied” event, not just “commandDenied”
11 Replies
Solution
I’m pretty sure you need the listener to be listening to the “chatInputCommandDenied” event, not just “commandDenied”
I also don’t have the docs in front of me right now so I may have the name slightly off
No you’re right
That’s probably why it isn’t firing
I'll try (but that certainly is NOT in the docs)
Nope it’s in the docs
Not in the guide though
That what I meant
Yeah it should be in there
Cuz that’s how u handle cooldowns and usererrors
Can you share the docs link where you see
commandDenied
?I meant not in the Guide
Sapphire Framework
Reporting precondition failure | Sapphire
When a precondition fails, it's usually important for the user to know why. For example, if they hit a cooldown or lack
ill fix that page now
deploy of the new page is running now, should be up in 10 minutes or so.