From 3755e66d411efd6ed210d5070a0257c742c336d6 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:11:41 +0000 Subject: [PATCH] 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> --- packages/discord.js/src/util/Util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/discord.js/src/util/Util.js b/packages/discord.js/src/util/Util.js index 9e7d1b773227..1214ad71fb82 100644 --- a/packages/discord.js/src/util/Util.js +++ b/packages/discord.js/src/util/Util.js @@ -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)) {