fix: followups called incorrectly

This commit is contained in:
Yuzu 2022-09-12 19:04:42 -05:00
parent afe3a38e4b
commit cac85ae063

View File

@ -221,6 +221,7 @@ export abstract class BaseInteraction implements Model {
const message = await Webhook.prototype.editMessage.call( const message = await Webhook.prototype.editMessage.call(
{ {
id: this.session.applicationId, id: this.session.applicationId,
session: this.session,
token: this.token, token: this.token,
}, },
messageId, messageId,
@ -237,6 +238,7 @@ export abstract class BaseInteraction implements Model {
await Webhook.prototype.deleteMessage.call( await Webhook.prototype.deleteMessage.call(
{ {
id: this.session.applicationId, id: this.session.applicationId,
session: this.session,
token: this.token, token: this.token,
}, },
messageId, messageId,
@ -313,6 +315,7 @@ export abstract class BaseInteraction implements Model {
return m; return m;
} }
session: this.session,
async defer() { async defer() {
await this.respond({ await this.respond({
type: InteractionResponseTypes.DeferredChannelMessageWithSource, type: InteractionResponseTypes.DeferredChannelMessageWithSource,