diff --git a/bot/util/functions.js b/bot/util/functions.js index 2aa2765..6869499 100644 --- a/bot/util/functions.js +++ b/bot/util/functions.js @@ -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)); }