feat(context): auto remove thinking when use message commands (#270)

This commit is contained in:
Marcos Susaña 2024-10-04 13:06:42 -04:00 committed by GitHub
parent 71cab8721e
commit 24d316f070
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,6 +99,7 @@ export class CommandContext<
body: InteractionMessageUpdateBodyRequest, body: InteractionMessageUpdateBodyRequest,
): Promise<When<InferWithPrefix, WebhookMessageStructure | MessageStructure, WebhookMessageStructure>> { ): Promise<When<InferWithPrefix, WebhookMessageStructure | MessageStructure, WebhookMessageStructure>> {
if (this.interaction) return this.interaction.editResponse(body); if (this.interaction) return this.interaction.editResponse(body);
body.content ??= '';
return (this.messageResponse = await this.messageResponse!.edit(body)) as never; return (this.messageResponse = await this.messageResponse!.edit(body)) as never;
} }