Skip to content

Commit

Permalink
fix(Client): don't auth for webhook fetches with token (#8709)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
ckohen and kodiakhq[bot] committed Oct 6, 2022
1 parent b64d657 commit 01d75c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/client/Client.js
Expand Up @@ -313,7 +313,7 @@ class Client extends BaseClient {
* .catch(console.error);
*/
async fetchWebhook(id, token) {
const data = await this.rest.get(Routes.webhook(id, token));
const data = await this.rest.get(Routes.webhook(id, token), { auth: typeof token === 'undefined' });
return new Webhook(this, { token, ...data });
}

Expand Down

0 comments on commit 01d75c8

Please sign in to comment.