Skip to content

Commit 3d2a776

Browse files
Fix latest find_modal_text breakage from serenity-next (#378)
1 parent 6beab70 commit 3d2a776

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn find_modal_text(
1414
for component in data.components.iter_mut() {
1515
// text inputs can either exist in Labels or Containers
1616
match component {
17-
serenity::Component::Label(label) => match &mut label.component {
17+
serenity::ModalComponent::Label(label) => match &mut label.component {
1818
serenity::LabelComponent::InputText(input_text) => {
1919
if input_text.custom_id == custom_id {
2020
return match std::mem::take(&mut input_text.value) {

0 commit comments

Comments
 (0)