Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to convert "15548997" to a number. #10114

Closed
Xaliks opened this issue Feb 2, 2024 · 0 comments · Fixed by #10115
Closed

Unable to convert "15548997" to a number. #10114

Xaliks opened this issue Feb 2, 2024 · 0 comments · Fixed by #10115

Comments

@Xaliks
Copy link
Contributor

Xaliks commented Feb 2, 2024

Which package is this bug report for?

discord.js

Issue description

When I try to set the embed color, I get an error:

C:\Users\Xaliks\Desktop\Projects\TBR\bot\node_modules\discord.js\src\util\Util.js:297
    throw new DiscordjsTypeError(ErrorCodes.ColorConvert, color);
    ^

TypeError [ColorConvert]: Unable to convert "15548997" to a number.
    at resolveColor (C:\Users\Xaliks\Desktop\Projects\TBR\bot\node_modules\discord.js\src\util\Util.js:297:11)
    at EmbedBuilder.setColor (C:\Users\Xaliks\Desktop\Projects\TBR\bot\node_modules\discord.js\src\structures\EmbedBuilder.js:23:36)

Error appeared after merging PR #10108

Code sample

const { EmbedBuilder, Colors } = require("discord.js");

const embed = new EmbedBuilder().setColor(Colors.Red);

Versions

  • discord.js@14.15.0-dev.1706616231-278396e81

Issue priority

Medium (should be fixed soon)

Which partials do you have configured?

Not applicable

Which gateway intents are you subscribing to?

Not applicable

I have tested this issue on a development release

278396e

@Jiralite Jiralite self-assigned this Feb 2, 2024
@kodiakhq kodiakhq bot closed this as completed in #10115 Feb 5, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants