From 0f746b84c87e2250de78343179805970deb346d4 Mon Sep 17 00:00:00 2001 From: biast12 <53872542+biast12@users.noreply.github.com> Date: Mon, 6 Jul 2026 00:08:28 +0200 Subject: [PATCH] Make modal submit message optional Update `ModalSubmitInteraction` so `message` is `Option` instead of required. This matches Discord payload behavior where `message` is only present for modals opened from components, and absent for slash command-opened modals. --- model/src/interaction/interaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/src/interaction/interaction.rs b/model/src/interaction/interaction.rs index 67a3e6a..b62e22b 100644 --- a/model/src/interaction/interaction.rs +++ b/model/src/interaction/interaction.rs @@ -135,7 +135,7 @@ pub struct ModalSubmitInteraction { pub id: Snowflake, pub application_id: Snowflake, pub r#type: InteractionType, - pub message: Message, + pub message: Option, pub data: ModalInteractionData, pub guild_id: Option, pub channel_id: Snowflake,