precondition error logging in console
hey, when my precondition errors, its logged to console and i don't understand how to stop it?
Solution:Jump to solution
damn i just realized i had console.log in node_modules when i was testing something
14 Replies

I also have my own listener for every error and command denied thing
But if I try to debug in those listeners, it logs after this error
btw this is just for testing, I know that it should be like
!interaction.inCachedGuild()
im getting this but its still logged to console

you’re returning this.error, which should log to the console
no
thats how it works

on sapphire guide
hmm, do you have any console.logs anywhere in your code?
no
i mean i tried everything
im having this issue for like 30 minutes
trying to find the problem
but can't
this is my ChatInputCommandDenied listener and that works fine
have you tried formatting the error like it is in the example? it doesn’t seem to be formatted the same
? this.ok
: this.error(<insert msg here>)
ye but that wont change anything
yup same thing happening
Solution
damn i just realized i had console.log in node_modules when i was testing something
sorry