We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b64d657 commit 01d75c8Copy full SHA for 01d75c8
packages/discord.js/src/client/Client.js
@@ -313,7 +313,7 @@ class Client extends BaseClient {
313
* .catch(console.error);
314
*/
315
async fetchWebhook(id, token) {
316
- const data = await this.rest.get(Routes.webhook(id, token));
+ const data = await this.rest.get(Routes.webhook(id, token), { auth: typeof token === 'undefined' });
317
return new Webhook(this, { token, ...data });
318
}
319
0 commit comments