mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(MessageEmbed): resolve color in embed constructor (#2912)
* Resolve color in embed constructor * Use ColorResolvable type for color parameter * docs(MessageEmbed): color property is still a number
This commit is contained in:
@@ -45,7 +45,7 @@ class MessageEmbed {
|
||||
* The color of this embed
|
||||
* @type {?number}
|
||||
*/
|
||||
this.color = data.color;
|
||||
this.color = Util.resolveColor(data.color);
|
||||
|
||||
/**
|
||||
* The timestamp of this embed
|
||||
|
||||
Reference in New Issue
Block a user