randomColour function
This commit is contained in:
parent
af8550b5a2
commit
0c6febd970
1 changed files with 5 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue