diff --git a/src/utils/dualCollector.ts b/src/utils/dualCollector.ts
index ae63757..902822a 100644
--- a/src/utils/dualCollector.ts
+++ b/src/utils/dualCollector.ts
@@ -7,9 +7,9 @@
     try {
         out = await new Promise((resolve, reject) => {
             let mes, int;
-            mes = m.createMessageComponentCollector({filter: (m) => interactionFilter(m), time: 600000})
+            mes = m.createMessageComponentCollector({filter: (m) => interactionFilter(m), time: 300000})
                 .on("collect", (m) => { resolve(m); })
-            int = m.channel.createMessageCollector({filter: (m) => messageFilter(m), time: 600000})
+            int = m.channel.createMessageCollector({filter: (m) => messageFilter(m), time: 300000})
                 .then("collect", (m) => { try {m.delete();} catch {}; resolve(m); })
             mes.on("end", () => { int.stop(); })
             int.on("end", () => { mes.stop(); })
@@ -27,12 +27,12 @@
     try {
         out = await new Promise((resolve, reject) => {
             let mod, int;
-            int = m.createMessageComponentCollector({filter: (m) => interactionFilter(m), time: 600000})
+            int = m.createMessageComponentCollector({filter: (m) => interactionFilter(m), time: 300000})
                 .on("collect", (m) => { resolve(m); })
             mod = new Discord.InteractionCollector(
                 client, {
                     filter: (m) => modalFilter(m),
-                    time: 600000
+                    time: 300000
                 })
                 .on("collect", async (m) => {
                     int.stop();
