feat(embed): remove Embed.setColor (#7662)

This commit is contained in:
Ben
2022-03-15 13:36:20 -07:00
committed by GitHub
parent 8fb98165a9
commit 9b0d8cb2d8

View File

@@ -1,7 +1,6 @@
'use strict';
const isEqual = require('fast-deep-equal');
const { Util } = require('../util/Util');
class Embed {
/**
@@ -194,18 +193,6 @@ class Embed {
}
return isEqual(other, this.data);
}
/**
* Sets the color of this embed
* @param {ColorResolvable} color The color of the embed
* @returns {Embed}
*/
setColor(color) {
if (color === null) {
return super.setColor(null);
}
return super.setColor(Util.resolveColor(color));
}
}
module.exports = Embed;