Precondition not throwing errors.
I've setup this precondition to make sure the user is in a voice channel, when the user is in a voice channel it runs perfectly fine. But if one of the conditions is not met the error is not thrown and the command does not respond.
Solution:Jump to solution
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
3 Replies
Solution
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
Oh duh I forgot to implement that. Thanks.
Slight problem, I added the listener that was on that page and its still not returning the error.
src/preconditions/InVoice.ts
/src/listeners/ChatInputCommandDenied.ts
(ignore, i figured it out.)
I was setting it up wrong