Hey team, we are trying to handle some errors using the EmbedEvent.Error, and I was wondering what your recommendations are for identifying specific errors.
We have noticed that some of the errors have a code and an error code (please see the screenshot below). Is there a way we can access the list of error codes? Maybe we can do something like this:
if (error.data.error[0].extensions.code === 12121) { console.log("Error message for code 12121"); }
if (error.data.error[0].extensions.exception.message.includes('Error Code: QUERY_TIMED_OUT')) { console.log("Error message for QUERY_TIMED_OUT"); }
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community