Skip to content

Commit 9028b11

Browse files
committed
fix: Fixed a bug with modals where the entry wasn't getting removed
1 parent ab9ce87 commit 9028b11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/seailz/jdaframework/modals/listeners/ModalListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public void onModalInteraction(@NotNull ModalInteractionEvent e){
2424
if (modalEntry.getValue().getId().equals(e.getModalId()) && modalEntry.getKey().getId().equals(e.getMember().getId())){
2525
ModalMapping[] mappings = e.getValues().toArray(new ModalMapping[0]);
2626
modalEntry.getValue().getOnSubmit().accept(e.getMember(), mappings, e);
27+
ModalManager.getModals().remove(modalEntry);
2728
}
2829
}
2930
}

0 commit comments

Comments
 (0)