logging
Is there anyway I can log to console every time a command or a listener is ran?
10 Replies
i would assume i can just extend both the command and listener exported by sapphire, then log in the constructor of the class but is there any easier way
Solution
There are events for command runs
you can listen to that
oh ok
what about listeners
or no
lemme check
thank you
my pc doesn't wanna turn on rn for some reason but you could input
Events
from sapphire and check what events are availableoh its ok tysm though ill do that
okay i checked through the src code and there isnt one for ListenerRun so you could extend the Listener class like u said before
ChatInputCommandRun
and MessageCommandRun
iirc
thank you