Nucleus stats
diff --git a/src/utils/dualCollector.ts b/src/utils/dualCollector.ts
index 1a57a85..64e87b8 100644
--- a/src/utils/dualCollector.ts
+++ b/src/utils/dualCollector.ts
@@ -58,8 +58,9 @@
filter: (i: MessageComponentInteraction) => interactionFilter(i),
time: 300000
})
- .on("collect", (i: ButtonInteraction) => {
+ .on("collect", async (i: ButtonInteraction) => {
mod.stop();
+ if (!i.deferred) await i.deferUpdate();
resolve(i);
});
const mod = new InteractionCollector(client as Client, {
@@ -67,12 +68,11 @@
time: 300000
}).on("collect", async (i: ModalSubmitInteraction) => {
int.stop();
- await i.deferUpdate();
+ if (!i.deferred) await i.deferUpdate();
resolve(i);
});
});
} catch (e) {
- console.log(e);
return null;
}
return out;