mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix double bug
This commit is contained in:
+2
-2
@@ -342,8 +342,8 @@ module.exports = class Util {
|
||||
return new Promise(res => {
|
||||
collector.once('end', verify => {
|
||||
verify.set(msg.id, msg);
|
||||
if (verify.size < min) return res(false);
|
||||
return res(verify.map(player => player.author.id));
|
||||
if (joined.length < min) return res(false);
|
||||
return res(joined);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user