uh
This commit is contained in:
parent
3fb1b8bea3
commit
d51d489a0b
1 changed files with 1 additions and 3 deletions
|
@ -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)];
|
||||||
|
|
Loading…
Reference in a new issue