Closed rodycouto closed 2 years ago
Hi, this is intended behavior in v14. Colors within json objects are not resolved by default. If you'd like to use hex colors you have three options:
Use a hex number literal
Instead of using the color: '#FF0000'
you can use a hex literal color: 0xFF0000
Use EmbedBuilder
either via the constructor or the setters.
Use the resolveColor(color)
utility function to resolve the hex color in the json.
Which package is this bug report for?
builders
Issue description
Code sample
Package version
14.0.1
Node.js version
v16.15.0
Operating system
Linux
Priority this issue should have
High (immediate attention needed)
Which partials do you have configured?
User, Channel, GuildMember, Message, Reaction, GuildScheduledEvent, ThreadMember
Which gateway intents are you subscribing to?
Guilds, GuildMembers, GuildBans, GuildEmojisAndStickers, GuildIntegrations, GuildWebhooks, GuildInvites, GuildVoiceStates, GuildPresences, GuildMessages, GuildMessageReactions, MessageContent, GuildScheduledEvents
I have tested this issue on a development release
No response