We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
attachments
embeds
1 parent 638b896 commit a468ae8Copy full SHA for a468ae8
packages/discord.js/src/structures/Message.js
@@ -973,10 +973,12 @@ class Message extends Base {
973
this.id === message.id &&
974
this.author.id === message.author.id &&
975
this.content === message.content &&
976
- this.tts === message.tts &&
977
this.nonce === message.nonce &&
+ this.tts === message.tts &&
978
+ this.attachments.size === message.attachments.size &&
979
this.embeds.length === message.embeds.length &&
- this.attachments.length === message.attachments.length;
980
+ this.attachments.every(attachment => message.attachments.has(attachment.id)) &&
981
+ this.embeds.every((embed, index) => embed.equals(message.embeds[index]));
982
983
if (equal && rawData) {
984
equal =
0 commit comments