WebhookClient vs raw request

What are the benefits of using WebhookClient over sending a raw request, and vice versa? Currently, it is just being used to send logs and nothing complex, so I have a feeling sending raw requests will be more beneficial than creating a WebhookClient object every time I need to send a webhook message. I dove into the source code and saw that the WebhookClient uses the main REST client to send requests, does this count towards the bots overall rate limit or is this separate? What other major factors should I consider when using raw requests over WebhookClient?
2 Replies
d.js toolkit
d.js toolkit9mo 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!
d.js docs
d.js docs9mo ago
:method: Client#fetchWebhook() Obtains a webhook from Discord.
Want results from more Discord servers?
Add your server