Revert "fix message embed json serialization (#2420)"

This reverts commit c40488eb54.
This commit is contained in:
Will Nelson
2018-03-24 17:43:56 -07:00
committed by Isabella
parent c40488eb54
commit b5b436f9cb
2 changed files with 9 additions and 4 deletions

View File

@@ -302,11 +302,16 @@ class MessageEmbed {
return this;
}
toJSON() {
return Util.flatten(this, { hexColor: true });
}
/**
* Transforms the embed object to be processed.
* @returns {Object} The raw data of this embed
* @private
*/
toJSON() {
_apiTransform() {
return {
title: this.title,
type: 'rich',