API error event handler
Hi, when I get a DiscordAPIError through the logger that starts like this:
Is there a singular event to capture these without listening to multiple events such as
chatInputCommandError
, commandAutocompleteInteractionError
and contextMenuCommandError
etc?Solution:Jump to solution
there isn't but you can easily reuse code. Just import the same function in each listener and pass parameters.
1 Reply
Solution
there isn't but you can easily reuse code. Just import the same function in each listener and pass parameters.