interaction.reply error handling

Hello. I want handle every interaction.reply error by the interactionReplyErrorHandler function. Is it possible to do this without writing after each execution .catch((err) => interactionReplyErrorHandler(err, interaction))? I tried to create a wrapper class, but can't understand how to do this universal, not HandledChatInputCommand, HandledUserContextCommand etc. and may exist more native methods
1 Reply
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!

Did you find this page helpful?