mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Webpack build for branch 11.3-dev: 52c402faea
This commit is contained in:
parent
8b9603c8ac
commit
203873121a
2 changed files with 2 additions and 1 deletions
|
|
@ -11771,6 +11771,7 @@ class ClientDataResolver {
|
||||||
static resolveColor(color) {
|
static resolveColor(color) {
|
||||||
if (typeof color === 'string') {
|
if (typeof color === 'string') {
|
||||||
if (color === 'RANDOM') return Math.floor(Math.random() * (0xFFFFFF + 1));
|
if (color === 'RANDOM') return Math.floor(Math.random() * (0xFFFFFF + 1));
|
||||||
|
if (color === 'DEFAULT') return 0;
|
||||||
color = Constants.Colors[color] || parseInt(color.replace('#', ''), 16);
|
color = Constants.Colors[color] || parseInt(color.replace('#', ''), 16);
|
||||||
} else if (color instanceof Array) {
|
} else if (color instanceof Array) {
|
||||||
color = (color[0] << 16) + (color[1] << 8) + color[2];
|
color = (color[0] << 16) + (color[1] << 8) + color[2];
|
||||||
|
|
|
||||||
2
discord.11.3-dev.min.js
vendored
2
discord.11.3-dev.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue