diff --git a/src/structures/AutocompleteInteraction.js b/src/structures/AutocompleteInteraction.js index 4c5d8369677f..e942a6dc4558 100644 --- a/src/structures/AutocompleteInteraction.js +++ b/src/structures/AutocompleteInteraction.js @@ -99,6 +99,7 @@ class AutocompleteInteraction extends Interaction { choices: options, }, }, + auth: false, }); this.responded = true; } diff --git a/src/structures/Webhook.js b/src/structures/Webhook.js index 7f51362c05d4..c27244b29ba0 100644 --- a/src/structures/Webhook.js +++ b/src/structures/Webhook.js @@ -249,6 +249,7 @@ class Webhook { const data = await this.client.api.webhooks(this.id, channel ? undefined : this.token).patch({ data: { name, avatar, channel_id: channel }, reason, + auth: !this.token || Boolean(channel), }); this.name = data.name; @@ -287,6 +288,7 @@ class Webhook { query: { thread_id: cacheOrOptions.threadId, }, + auth: false, }); return this.client.channels?.cache.get(data.channel_id)?.messages._add(data, cacheOrOptions.cache) ?? data; } @@ -317,6 +319,7 @@ class Webhook { query: { thread_id: messagePayload.options.threadId, }, + auth: false, }); const messageManager = this.client.channels?.cache.get(d.channel_id)?.messages; @@ -336,7 +339,7 @@ class Webhook { * @returns {Promise} */ async delete(reason) { - await this.client.api.webhooks(this.id, this.token).delete({ reason }); + await this.client.api.webhooks(this.id, this.token).delete({ reason, auth: !this.token }); } /** @@ -355,6 +358,7 @@ class Webhook { query: { thread_id: threadId, }, + auth: false, }); } diff --git a/src/structures/interfaces/InteractionResponses.js b/src/structures/interfaces/InteractionResponses.js index f5becee11af7..85026e9beae5 100644 --- a/src/structures/interfaces/InteractionResponses.js +++ b/src/structures/interfaces/InteractionResponses.js @@ -61,6 +61,7 @@ class InteractionResponses { flags: options.ephemeral ? MessageFlags.FLAGS.EPHEMERAL : undefined, }, }, + auth: false, }); this.deferred = true; @@ -101,6 +102,7 @@ class InteractionResponses { data, }, files, + auth: false, }); this.replied = true; @@ -179,6 +181,7 @@ class InteractionResponses { data: { type: InteractionResponseTypes.DEFERRED_MESSAGE_UPDATE, }, + auth: false, }); this.deferred = true; @@ -213,6 +216,7 @@ class InteractionResponses { data, }, files, + auth: false, }); this.replied = true;