This commit is contained in:
Dragon Fire
2024-03-20 00:20:13 -04:00
parent 461566ff6b
commit 957e6b0691
+1 -1
View File
@@ -327,7 +327,7 @@ module.exports = class Util {
if (!num) return false;
return num > 0 && num <= arr.length;
};
const msgs = await msg.channel.awaitMessages({ filter,max: 1, time });
const msgs = await msg.channel.awaitMessages({ filter, max: 1, time });
if (!msgs.size) return defalt;
return arr[Number.parseInt(msgs.first().content, 10) - 1];
}