Skip to content

Commit

Permalink
fix(MessageEmbed): only compare image urls in #equals (#6926)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImRodry committed Nov 1, 2021
1 parent bb245b7 commit 95d2a4d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/structures/MessageEmbed.js
Expand Up @@ -274,7 +274,6 @@ class MessageEmbed {
this.author?.name === embed.author?.name &&
this.author?.url === embed.author?.url &&
this.author?.iconURL === (embed.author?.iconURL ?? embed.author?.icon_url) &&
this.author?.proxyIconURL === (embed.author?.proxyIconURL ?? embed.author?.proxy_icon_url) &&
this.color === embed.color &&
this.title === embed.title &&
this.description === embed.description &&
Expand All @@ -284,19 +283,9 @@ class MessageEmbed {
this.fields.every((field, i) => this._fieldEquals(field, embed.fields[i])) &&
this.footer?.text === embed.footer?.text &&
this.footer?.iconURL === (embed.footer?.iconURL ?? embed.footer?.icon_url) &&
this.footer?.proxyIconURL === (embed.footer?.proxyIconURL ?? embed.footer?.proxy_icon_url) &&
this.image?.url === embed.image?.url &&
this.image?.proxyURL === (embed.image?.proxyURL ?? embed.image?.proxy_url) &&
this.image?.height === embed.image?.height &&
this.image?.width === embed.image?.width &&
this.thumbnail?.url === embed.thumbnail?.url &&
this.thumbnail?.proxyURL === (embed.thumbnail?.proxyURL ?? embed.thumbnail?.proxy_url) &&
this.thumbnail?.height === embed.thumbnail?.height &&
this.thumbnail?.width === embed.thumbnail?.width &&
this.video?.url === embed.video?.url &&
this.video?.proxyURL === (embed.video?.proxyURL ?? embed.video?.proxy_url) &&
this.video?.height === embed.video?.height &&
this.video?.width === embed.video?.width &&
this.provider?.name === embed.provider?.name &&
this.provider?.url === embed.provider?.url
);
Expand Down

0 comments on commit 95d2a4d

Please sign in to comment.