From 5dfffc764e61d8225767082a92ba603d63c21627 Mon Sep 17 00:00:00 2001 From: Sasial <44125644+sasial-dev@users.noreply.github.com> Date: Thu, 14 Apr 2022 11:35:50 +1000 Subject: [PATCH] Add message typing to ModalSubmitInteraction --- typings/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 3a3a5ac3466b..ae706a75a94d 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1913,7 +1913,7 @@ export class ModalSubmitFieldsResolver { export interface ModalMessageModalSubmitInteraction extends ModalSubmitInteraction { - message: GuildCacheMessage | null; + message: GuildCacheMessage; update(options: InteractionUpdateOptions & { fetchReply: true }): Promise>; update(options: string | MessagePayload | InteractionUpdateOptions): Promise; deferUpdate(options: InteractionDeferUpdateOptions & { fetchReply: true }): Promise>; @@ -1929,6 +1929,7 @@ export class ModalSubmitInteraction extend public components: PartialModalActionRow[]; public deferred: boolean; public ephemeral: boolean | null; + public message: GuildCacheMessage | null; public fields: ModalSubmitFieldsResolver; public replied: false; public webhook: InteractionWebhook;