Skip to content

Commit ab9ce87

Browse files
authored
Merge pull request #6 from seailz/master
fix: Fixed an error with entries
2 parents a6f7000 + e94abb8 commit ab9ce87

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

src/main/java/com/seailz/jdaframework/modals/controller/ModalManager.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,22 @@ public static void open(Modal modal, Member member, Interaction interaction) {
5353
throw new IllegalStateException("Interaction is not a SlashCommandInteractionEvent or ButtonInteractionEvent");
5454

5555

56-
modals.add(Map.entry(member, modal));
56+
modals.add(new Map.Entry<Member, Modal>() {
57+
@Override
58+
public Member getKey() {
59+
return member;
60+
}
61+
62+
@Override
63+
public Modal getValue() {
64+
return modal;
65+
}
66+
67+
@Override
68+
public Modal setValue(Modal value) {
69+
return null;
70+
}
71+
});
5772

5873
}
5974
}

0 commit comments

Comments
 (0)