From afdb34d56f5712e4b2fb01eae3e4c6ac25bc84c0 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 160133970fe1..b9eb829df4a5 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -1897,7 +1897,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>; @@ -1913,6 +1913,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;