From 24d316f070846711536011b574a406d24560c930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Susa=C3=B1a?= Date: Fri, 4 Oct 2024 13:06:42 -0400 Subject: [PATCH] feat(context): auto remove thinking when use message commands (#270) --- src/commands/applications/chatcontext.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/applications/chatcontext.ts b/src/commands/applications/chatcontext.ts index 03e9073..d8aba24 100644 --- a/src/commands/applications/chatcontext.ts +++ b/src/commands/applications/chatcontext.ts @@ -99,6 +99,7 @@ export class CommandContext< body: InteractionMessageUpdateBodyRequest, ): Promise> { if (this.interaction) return this.interaction.editResponse(body); + body.content ??= ''; return (this.messageResponse = await this.messageResponse!.edit(body)) as never; }