Formatting Discord Response Messages

Is there a way to modify the responses from Discord API wrapped by DiscordJS
GET /guilds/xxx/channels null -> 503 - Service Unavailable
GET /guilds/xxx/channels null -> 503 - Service Unavailable
If its possible, is there a way to define messages based on error code or URL patterns ?
6 Replies
d.js toolkit
d.js toolkit2mo 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! - Marked as resolved by OP
treble/luna
treble/luna2mo ago
this exists not sure what your question exactly is
Panda
PandaOP2mo ago
Yes exactly, but is there a way to intercept them ?
treble/luna
treble/luna2mo ago
catch your promise rejections properly
Panda
PandaOP2mo ago
well, get that. But I thought there is maybe a central point where they can be intercepted and handled 😄 But that answered my question 😄 tyvm ^^

Did you find this page helpful?