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:
MoreThanTom
2019-04-15 19:46:59 +01:00
committed by SpaceEEC
parent eb537b6f48
commit 52bc5b0170
2 changed files with 2 additions and 2 deletions

View File

@@ -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