File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11//! Modal trait and utility items for implementing it (mainly for the derive macro)
22
33use crate :: serenity_prelude as serenity;
4- use serenity:: all:: { Component , LabelComponent } ;
54
65/// Meant for use in derived [`Modal::parse`] implementation
76///
@@ -15,8 +14,8 @@ pub fn find_modal_text(
1514 for component in data. components . iter_mut ( ) {
1615 // text inputs can either exist in Labels or Containers
1716 match component {
18- Component :: Label ( label) => match & mut label. component {
19- LabelComponent :: InputText ( input_text) => {
17+ serenity :: Component :: Label ( label) => match & mut label. component {
18+ serenity :: LabelComponent :: InputText ( input_text) => {
2019 if input_text. custom_id == custom_id {
2120 return match std:: mem:: take ( & mut input_text. value ) {
2221 Some ( val) if val. is_empty ( ) => None ,
You can’t perform that action at this time.
0 commit comments