mirror of
https://github.com/danbulant/discord.js
synced 2026-09-18 14:04:00 +00:00
Webpack build for branch master: 10f98d8e57
This commit is contained in:
parent
9569afff1c
commit
07269365a7
2 changed files with 2 additions and 4 deletions
|
|
@ -3364,9 +3364,7 @@ class Role extends Base {
|
|||
* @readonly
|
||||
*/
|
||||
get hexColor() {
|
||||
let col = this.color.toString(16);
|
||||
while (col.length < 6) col = `0${col}`;
|
||||
return `#${col}`;
|
||||
return `#${this.color.toString(16).padStart(6, '0')}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
discord.master.min.js
vendored
2
discord.master.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue