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 return message
.awaitReactions({ filter, max: 1, time: time }) .awaitReactions({ filter, max: 1, time: time })
.then(collected => collected.first() && collected.first().emoji.name); .then(collected => collected.first() && collected.first().emoji.name);
} catch (e) { } catch (_) {}
console.log(e);
}
} }
function selectRandom(array = []) { function selectRandom(array = []) {
return array[Math.floor(Math.random() * array.length)]; return array[Math.floor(Math.random() * array.length)];