mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
colorAsHex should return hex (fixes #188)
This commit is contained in:
@@ -125,7 +125,7 @@ export default class Role {
|
||||
}
|
||||
|
||||
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