mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat(embed): remove Embed.setColor (#7662)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user