From b577bcc1df5c6424fef9984e19a5f11c77371cf3 Mon Sep 17 00:00:00 2001 From: muchnameless <12682826+muchnameless@users.noreply.github.com> Date: Tue, 12 Apr 2022 17:20:20 +0200 Subject: [PATCH] types(ModalSubmitInteraction): message (#7705) --- packages/discord.js/typings/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 51db4d3af..7149b216c 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1862,7 +1862,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>; @@ -1879,6 +1879,7 @@ export class ModalSubmitInteraction extend public readonly fields: ModalSubmitFieldsResolver; public deferred: boolean; public ephemeral: boolean | null; + public message: GuildCacheMessage | null; public replied: boolean; public readonly webhook: InteractionWebhook; public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise>;