From cac85ae0635155fe2e5024d49e6ea021b94c8316 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Mon, 12 Sep 2022 19:04:42 -0500 Subject: [PATCH] fix: followups called incorrectly --- packages/core/src/structures/interactions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/src/structures/interactions.ts b/packages/core/src/structures/interactions.ts index 24b3550..88224bc 100644 --- a/packages/core/src/structures/interactions.ts +++ b/packages/core/src/structures/interactions.ts @@ -221,6 +221,7 @@ export abstract class BaseInteraction implements Model { const message = await Webhook.prototype.editMessage.call( { id: this.session.applicationId, + session: this.session, token: this.token, }, messageId, @@ -237,6 +238,7 @@ export abstract class BaseInteraction implements Model { await Webhook.prototype.deleteMessage.call( { id: this.session.applicationId, + session: this.session, token: this.token, }, messageId, @@ -313,6 +315,7 @@ export abstract class BaseInteraction implements Model { return m; } + session: this.session, async defer() { await this.respond({ type: InteractionResponseTypes.DeferredChannelMessageWithSource,