diff --git a/examples/feature_showcase/modal.rs b/examples/feature_showcase/modal.rs index 32be2503f150..99a7fbaef046 100644 --- a/examples/feature_showcase/modal.rs +++ b/examples/feature_showcase/modal.rs @@ -37,7 +37,7 @@ pub async fn component_modal(ctx: crate::Context<'_>) -> Result<(), Error> { ctx.send(reply).await?; - while let Some(mci) = serenity::ModalInteractionCollector::new(ctx.serenity_context()) + while let Some(mci) = serenity::ComponentInteractionCollector::new(ctx.serenity_context()) .timeout(std::time::Duration::from_secs(120)) .filter(move |mci| mci.data.custom_id == "open_modal") .await diff --git a/src/modal.rs b/src/modal.rs index 7dd516c62697..0ad4c78ac4a5 100644 --- a/src/modal.rs +++ b/src/modal.rs @@ -121,7 +121,7 @@ pub async fn execute_modal( /// and adjust to your needs. The code of this function is just a starting point. pub async fn execute_modal_on_component_interaction( ctx: impl AsRef, - interaction: serenity::ModalInteraction, + interaction: serenity::ComponentInteraction, defaults: Option, timeout: Option, ) -> Result, serenity::Error> {