Skip to content

Commit

Permalink
fix(resolveColor): Address case for numbers (#10115)
Browse files Browse the repository at this point in the history
fix(resolveColor): address case for numbers

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
Jiralite and kodiakhq[bot] authored Feb 5, 2024
1 parent c878b65 commit 3755e66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/discord.js/src/util/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 3755e66

Please sign in to comment.