Nucleus stats done / premium started
diff --git a/src/utils/dualCollector.ts b/src/utils/dualCollector.ts
index 64e87b8..f55716e 100644
--- a/src/utils/dualCollector.ts
+++ b/src/utils/dualCollector.ts
@@ -60,15 +60,17 @@
})
.on("collect", async (i: ButtonInteraction) => {
mod.stop();
- if (!i.deferred) await i.deferUpdate();
+ int.stop();
+ await i.deferUpdate();
resolve(i);
});
const mod = new InteractionCollector(client as Client, {
- filter: (i: Interaction) => modalFilter(i),
+ filter: (i: Interaction) => modalFilter(i) && i.isModalSubmit(),
time: 300000
}).on("collect", async (i: ModalSubmitInteraction) => {
int.stop();
- if (!i.deferred) await i.deferUpdate();
+ mod.stop();
+ await i.deferUpdate();
resolve(i);
});
});