mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(resolveColor): Address case for numbers (#10115)
fix(resolveColor): address case for numbers Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -287,6 +287,8 @@ function resolveColor(color) {
|
||||
resolvedColor = Colors[color];
|
||||
} else if (Array.isArray(color)) {
|
||||
resolvedColor = (color[0] << 16) + (color[1] << 8) + color[2];
|
||||
} else {
|
||||
resolvedColor = color;
|
||||
}
|
||||
|
||||
if (!Number.isInteger(resolvedColor)) {
|
||||
|
||||
Reference in New Issue
Block a user