Skip to content

Commit 01d75c8

Browse files
fix(Client): don't auth for webhook fetches with token (#8709)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent b64d657 commit 01d75c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/discord.js/src/client/Client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class Client extends BaseClient {
313313
* .catch(console.error);
314314
*/
315315
async fetchWebhook(id, token) {
316-
const data = await this.rest.get(Routes.webhook(id, token));
316+
const data = await this.rest.get(Routes.webhook(id, token), { auth: typeof token === 'undefined' });
317317
return new Webhook(this, { token, ...data });
318318
}
319319

0 commit comments

Comments
 (0)