S-IAF
Join ServerSapphire - Imagine a framework
sapphire-support
Command Error
JJustBrian12/29/2022
There seems to be a problem with sapphire not running my ChatInputCommandError listener. I tried debugging
:check: My pieces directory is in the right place
:check: The listener is not configured to run only once
console.log({ error, context })
inside the run
method but it doesn't log. :check: My pieces directory is in the right place
:check: The listener is not configured to run only once
JJustBrian12/29/2022
I tried emitting the event manually, it runs. I wonder why Sapphire doesn't.
KKrish12/29/2022
i think it will be
chatInputCommandError
KKrish12/29/2022
check the spelling maybe
JJustBrian12/29/2022
I'm using the
Events
constant (or enum i suppose) directly from the lib, so i don't think spelling's the problem.JJustBrian12/29/2022
ig i extended a
Subcommand
, which has it's own and similar set of error listenersJJustBrian12/29/2022
it runs before i deleted it, i'll try creating the listener again
FFavna12/29/2022
This
Solution
FFavna12/29/2022
Subcommands have their own enum and own events
KKrish12/29/2022
i see it was a sub command
JJustBrian12/29/2022
thanks!