Naydrac
Naydrac
DIAdiscord.js - Imagine an app
Created by Naydrac on 11/12/2023 in #djs-questions
fetchWebhook and WebhookClient
Hi, As far as I know, instantiating a WebhookClient create a new Rest instance which is not a good thing if we already have a client, so we need to use client.fetchWebhook(). But I just need to send a message with a webhook, and fetchWebhook() make an API call, which is uncessary in that case because I don't want to fetch it, I only need webhook.send(). I already have its ID and token. What can I do ? Do I need to use client.rest.post directly ?
7 replies