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
Ben17mo ago
I’m pretty sure you need the listener to be listening to the “chatInputCommandDenied” event, not just “commandDenied”
Ben
Ben17mo 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_Blows17mo ago
No you’re right That’s probably why it isn’t firing
TIEB62
TIEB6217mo ago
I'll try (but that certainly is NOT in the docs)
Death_Blows
Death_Blows17mo ago
Nope it’s in the docs Not in the guide though
TIEB62
TIEB6217mo ago
That what I meant
Death_Blows
Death_Blows17mo ago
Yeah it should be in there Cuz that’s how u handle cooldowns and usererrors
Krish
Krish17mo ago
Can you share the docs link where you see commandDenied?
TIEB62
TIEB6217mo ago
I meant not in the Guide
TIEB62
TIEB6217mo 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
Favna17mo ago
ill fix that page now deploy of the new page is running now, should be up in 10 minutes or so.