logging

Is there anyway I can log to console every time a command or a listener is ran?
Solution:
There are events for command runs
Jump to solution
10 Replies
iaqi
iaqiOP8mo ago
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
Oreo ™
Oreo ™8mo ago
There are events for command runs
Oreo ™
Oreo ™8mo ago
you can listen to that
iaqi
iaqiOP8mo ago
oh ok what about listeners or no
Oreo ™
Oreo ™8mo ago
lemme check
iaqi
iaqiOP8mo ago
thank you
Oreo ™
Oreo ™8mo ago
my pc doesn't wanna turn on rn for some reason but you could input Events from sapphire and check what events are available
iaqi
iaqiOP8mo ago
oh its ok tysm though ill do that
Oreo ™
Oreo ™8mo ago
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
iaqi
iaqiOP8mo ago
thank you
Want results from more Discord servers?
Add your server