From 250346fe1d544f31fa170118e45b9a6bfcce65ac Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Mon, 30 Dec 2024 20:13:20 -0400 Subject: [PATCH] fix: transformers types --- src/commands/applications/chatcontext.ts | 6 ++++-- src/commands/applications/entrycontext.ts | 2 +- src/commands/applications/menucontext.ts | 2 +- src/components/componentcontext.ts | 2 +- src/components/modalcontext.ts | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/commands/applications/chatcontext.ts b/src/commands/applications/chatcontext.ts index 2e3147c..67a37b3 100644 --- a/src/commands/applications/chatcontext.ts +++ b/src/commands/applications/chatcontext.ts @@ -136,9 +136,11 @@ export class CommandContext< return this.write(body as InteractionCreateBodyRequest, withResponse); } - followup(body: MessageWebhookCreateBodyRequest) { + followup( + body: MessageWebhookCreateBodyRequest, + ): Promise> { if (this.interaction) return this.interaction.followup(body); - return this.messageResponse!.reply(body); + return this.messageResponse!.reply(body) as never; } async fetchResponse(): Promise< diff --git a/src/commands/applications/entrycontext.ts b/src/commands/applications/entrycontext.ts index 1242593..ad6425b 100644 --- a/src/commands/applications/entrycontext.ts +++ b/src/commands/applications/entrycontext.ts @@ -78,7 +78,7 @@ export class EntryPointContext ex return this.interaction.editOrReply(body as InteractionCreateBodyRequest, withResponse); } - followup(body: MessageWebhookCreateBodyRequest) { + followup(body: MessageWebhookCreateBodyRequest): Promise { return this.interaction.followup(body); } diff --git a/src/commands/applications/menucontext.ts b/src/commands/applications/menucontext.ts index 7e3f28a..d3c52b4 100644 --- a/src/commands/applications/menucontext.ts +++ b/src/commands/applications/menucontext.ts @@ -102,7 +102,7 @@ export class MenuCommandContext< return this.interaction.editOrReply(body as InteractionCreateBodyRequest, withResponse); } - followup(body: MessageWebhookCreateBodyRequest) { + followup(body: MessageWebhookCreateBodyRequest): Promise { return this.interaction.followup(body); } diff --git a/src/components/componentcontext.ts b/src/components/componentcontext.ts index 59c6119..a311796 100644 --- a/src/components/componentcontext.ts +++ b/src/components/componentcontext.ts @@ -131,7 +131,7 @@ export class ComponentContext< return this.interaction.editOrReply(body as InteractionCreateBodyRequest, fetchReply); } - followup(body: MessageWebhookCreateBodyRequest) { + followup(body: MessageWebhookCreateBodyRequest): Promise { return this.interaction.followup(body); } diff --git a/src/components/modalcontext.ts b/src/components/modalcontext.ts index 0b9dac9..476ed7a 100644 --- a/src/components/modalcontext.ts +++ b/src/components/modalcontext.ts @@ -100,7 +100,7 @@ export class ModalContext extends return this.interaction.editOrReply(body as InteractionCreateBodyRequest, fetchReply); } - followup(body: MessageWebhookCreateBodyRequest) { + followup(body: MessageWebhookCreateBodyRequest): Promise { return this.interaction.followup(body); }