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:
I’m pretty sure you need the listener to be listening to the “chatInputCommandDenied” event, not just “commandDenied”
Jump to solution
11 Replies
Solution
Ben
Ben2y ago
I’m pretty sure you need the listener to be listening to the “chatInputCommandDenied” event, not just “commandDenied”
Ben
Ben2y ago
I also don’t have the docs in front of me right now so I may have the name slightly off
Death_Blows
Death_Blows2y ago
No you’re right That’s probably why it isn’t firing
TIEB62
TIEB62OP2y ago
I'll try (but that certainly is NOT in the docs)
Death_Blows
Death_Blows2y ago
Nope it’s in the docs Not in the guide though
TIEB62
TIEB62OP2y ago
That what I meant
Death_Blows
Death_Blows2y ago
Yeah it should be in there Cuz that’s how u handle cooldowns and usererrors
Krish
Krish2y ago
Can you share the docs link where you see commandDenied?
TIEB62
TIEB62OP2y ago
I meant not in the Guide
TIEB62
TIEB62OP2y ago
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
Favna
Favna2y ago
ill fix that page now deploy of the new page is running now, should be up in 10 minutes or so.
Want results from more Discord servers?
Add your server