Description
Currently, the SelectMenu.handle method in src/main/java/botcommons/menu/types/SelectMenu.java has a temporary fix for an issue with Discord interaction responses:
// TODO: fix already replied issue
event.deferReply().queue();
This is a workaround to prevent timeout errors when handling button interactions, but it's not a comprehensive solution.
Proposed Solution
Implement a proper interaction response handling mechanism that can track the state of each interaction to prevent 'already replied' errors. For example:
if (!event.isAcknowledged()) {
event.deferReply().queue();
}
References
Description
Currently, the
SelectMenu.handlemethod insrc/main/java/botcommons/menu/types/SelectMenu.javahas a temporary fix for an issue with Discord interaction responses:This is a workaround to prevent timeout errors when handling button interactions, but it's not a comprehensive solution.
Proposed Solution
Implement a proper interaction response handling mechanism that can track the state of each interaction to prevent 'already replied' errors. For example:
References