randomColour function

This commit is contained in:
Emily 2020-10-28 12:17:54 +11:00
parent af8550b5a2
commit 0c6febd970

View file

@ -28,6 +28,11 @@ class Functions {
}
}
randomColour () {
const n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + n.slice(0, 6);
}
highestRole (member) {
if (member.roles.length === 0) return member.guild.roles.find(r => r.name === '@everyone');
@ -65,7 +70,6 @@ class Functions {
return;
}
intBetween (min, max) {
return Math.round((Math.random() * (max - min) + min));
}