fix(Message): properly compare attachments and embeds
backport #10282 djs v14
This commit is contained in:
@@ -973,7 +973,9 @@ class Message extends Base {
|
|||||||
this.tts === message.tts &&
|
this.tts === message.tts &&
|
||||||
this.nonce === message.nonce &&
|
this.nonce === message.nonce &&
|
||||||
this.embeds.length === message.embeds.length &&
|
this.embeds.length === message.embeds.length &&
|
||||||
this.attachments.length === message.attachments.length;
|
this.attachments.size === message.attachments.size &&
|
||||||
|
this.attachments.every(attachment => message.attachments.has(attachment.id)) &&
|
||||||
|
this.embeds.every((embed, index) => embed.equals(message.embeds[index]));
|
||||||
|
|
||||||
if (equal && rawData) {
|
if (equal && rawData) {
|
||||||
equal =
|
equal =
|
||||||
|
|||||||
Reference in New Issue
Block a user