mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
feat(embed): remove Embed.setColor (#7662)
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const isEqual = require('fast-deep-equal');
|
const isEqual = require('fast-deep-equal');
|
||||||
const { Util } = require('../util/Util');
|
|
||||||
|
|
||||||
class Embed {
|
class Embed {
|
||||||
/**
|
/**
|
||||||
@@ -194,18 +193,6 @@ class Embed {
|
|||||||
}
|
}
|
||||||
return isEqual(other, this.data);
|
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;
|
module.exports = Embed;
|
||||||
|
|||||||
Reference in New Issue
Block a user