Skip to content

Commit

Permalink
feat(embed): remove Embed.setColor (#7662)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjammingKirby committed Mar 15, 2022
1 parent 8fb9816 commit 9b0d8cb
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/discord.js/src/structures/Embed.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const isEqual = require('fast-deep-equal');
const { Util } = require('../util/Util');

class Embed {
/**
Expand Down Expand Up @@ -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;

0 comments on commit 9b0d8cb

Please sign in to comment.