eslint problems fixed, now theres only 850 ts ones to go
diff --git a/src/utils/dualCollector.ts b/src/utils/dualCollector.ts
index c785d0a..11df0ce 100644
--- a/src/utils/dualCollector.ts
+++ b/src/utils/dualCollector.ts
@@ -1,4 +1,4 @@
-import Discord from "discord.js";
+import Discord, { Interaction } from "discord.js";
import client from "./client.js";
export default async function (m, interactionFilter, messageFilter) {
@@ -24,14 +24,14 @@
let out;
try {
out = await new Promise((resolve, _reject) => {
- const int = m.createMessageComponentCollector({filter: (m) => interactionFilter(m), time: 300000})
- .on("collect", (m) => { resolve(m); });
+ const int = m.createMessageComponentCollector({filter: (m: Interaction) => interactionFilter(m), time: 300000})
+ .on("collect", (m: Interaction) => { resolve(m); });
const mod = new Discord.InteractionCollector(
client, {
- filter: (m) => modalFilter(m),
+ filter: (m: Interaction) => modalFilter(m),
time: 300000
})
- .on("collect", async (m) => {
+ .on("collect", async (m: Interaction) => {
int.stop();
(m as Discord.ModalSubmitInteraction).deferUpdate();
resolve((m as Discord.ModalSubmitInteraction)); });