mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
colorAsHex should return hex (fixes #188)
This commit is contained in:
@@ -130,7 +130,7 @@ var Role = (function () {
|
||||
};
|
||||
|
||||
Role.prototype.colorAsHex = function colorAsHex() {
|
||||
var val = this.color.toString();
|
||||
var val = this.color.toString(16);
|
||||
while (val.length < 6) {
|
||||
val = "0" + val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user