diff --git a/packages/discord.js/src/structures/ModalSubmitInteraction.js b/packages/discord.js/src/structures/ModalSubmitInteraction.js index 4a023a978..2f0889896 100644 --- a/packages/discord.js/src/structures/ModalSubmitInteraction.js +++ b/packages/discord.js/src/structures/ModalSubmitInteraction.js @@ -48,6 +48,24 @@ class ModalSubmitInteraction extends Interaction { */ this.fields = new ModalSubmitFieldsResolver(this.components); + /** + * Whether the reply to this interaction has been deferred + * @type {boolean} + */ + this.deferred = false; + + /** + * Whether this interaction has already been replied to + * @type {boolean} + */ + this.replied = false; + + /** + * Whether the reply to this interaction is ephemeral + * @type {?boolean} + */ + this.ephemeral = null; + /** * An associated interaction webhook, can be used to further interact with this interaction * @type {InteractionWebhook} diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 82759b9e9..3027bb644 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -1773,6 +1773,9 @@ export class ModalSubmitInteraction extend // TODO: fix this type when #7517 is implemented public readonly components: ModalSubmitActionRow[]; public readonly fields: ModalSubmitFieldsResolver; + public deferred: boolean; + public ephemeral: boolean | null; + public replied: boolean; public readonly webhook: InteractionWebhook; public reply(options: InteractionReplyOptions & { fetchReply: true }): Promise>; public reply(options: string | MessagePayload | InteractionReplyOptions): Promise;