diff --git a/src/structures/Interaction.ts b/src/structures/Interaction.ts index 6707cd8..5653dab 100644 --- a/src/structures/Interaction.ts +++ b/src/structures/Interaction.ts @@ -783,6 +783,26 @@ export interface ModalSubmitInteraction @mix(Interaction) export class ModalSubmitInteraction extends BaseInteraction { declare data: ObjectToLower; + + update(data: ComponentInteractionMessageUpdate, withResponse?: WR) { + return this.reply( + { + type: InteractionResponseType.UpdateMessage, + data, + }, + withResponse, + ); + } + + deferUpdate(withResponse?: WR) { + return this.reply( + { + type: InteractionResponseType.DeferredMessageUpdate, + }, + withResponse, + ); + } + get customId() { return this.data.customId; }