mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-09 10:47:16 +00:00
[AB-77] deferring the reply for report with context interactions
do not defer the interaction all the time for modal interactions
This commit is contained in:
@@ -62,8 +62,6 @@ public class ModalInteractionListenerBean extends ListenerAdapter {
|
||||
@Override
|
||||
public void onModalInteraction(@Nonnull ModalInteractionEvent event) {
|
||||
if(listenerList == null) return;
|
||||
// TODO remove this and make this configurable
|
||||
event.deferEdit().queue();
|
||||
CompletableFuture.runAsync(() -> self.executeListenerLogic(event), modalInteractionExecutor).exceptionally(throwable -> {
|
||||
log.error("Failed to execute listener logic in modal interaction event.", throwable);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user