[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:
Sheldan
2022-12-10 12:59:47 +01:00
parent 072f32975a
commit 0461c8e4ec
3 changed files with 29 additions and 21 deletions

View File

@@ -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;