This commit is contained in:
NK 2023-04-06 14:17:35 +01:00
parent 3fb1b8bea3
commit d51d489a0b

View file

@ -394,9 +394,7 @@ async function confirmation(message, author, validReactions, time = 60000) {
return message
.awaitReactions({ filter, max: 1, time: time })
.then(collected => collected.first() && collected.first().emoji.name);
} catch (e) {
console.log(e);
}
} catch (_) {}
}
function selectRandom(array = []) {
return array[Math.floor(Math.random() * array.length)];