How are colors supposed to look with v14?

I used to use HTML color codes but those seem to have been broken with v14?
DiscordAPIError[50035]: Invalid Form Body
embeds[0].color[NUMBER_TYPE_COERCE]: Value "#8C1149" is not int.
DiscordAPIError[50035]: Invalid Form Body
embeds[0].color[NUMBER_TYPE_COERCE]: Value "#8C1149" is not int.
4 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Erin
ErinOP3y ago
[email protected] /root/helper-bot
[email protected] /root/helper-bot
NPM: 8.12.1 Is there a way to find a list of hex numbers for html color codes? I keep finding rgb values and html codes Oh, I just x between the first number and second number? Oh, okay makes sense. color: '#8C1149', that would be color: 0x8c1149 right?
Sasial
Sasial3y ago
yes!
Erin
ErinOP3y ago
Cool. Thanks everyone! ❤️
Want results from more Discord servers?
Add your server