From 9b0d8cb2d8f7b55753de584eb3a3f347f87596c2 Mon Sep 17 00:00:00 2001 From: Ben <88249114+BenjammingKirby@users.noreply.github.com> Date: Tue, 15 Mar 2022 13:36:20 -0700 Subject: [PATCH] feat(embed): remove Embed.setColor (#7662) --- packages/discord.js/src/structures/Embed.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/discord.js/src/structures/Embed.js b/packages/discord.js/src/structures/Embed.js index 1fb148d42..d630e6f41 100644 --- a/packages/discord.js/src/structures/Embed.js +++ b/packages/discord.js/src/structures/Embed.js @@ -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;