Update Message.js

This commit is contained in:
Sans
2024-08-19 00:27:51 +02:00
committed by GitHub
parent 6760e14278
commit 0d86b712b9

View File

@@ -1170,13 +1170,7 @@ class Message extends Base {
return this.client.api.channels[this.channelId].messages[this.id].ack.post({ return this.client.api.channels[this.channelId].messages[this.id].ack.post({
data: { data: {
manual: true, manual: true,
mention_count: mention_count: 1,
this.mentions.everyone ||
this.mentions.repliedUser?.id === this.client.user.id ||
this.mentions.users.has(this.client.user.id) ||
(this.guildId && this.mentions.roles.some(r => this.guild.members.me._roles?.includes(r.id)))
? 1
: 0,
}, },
}); });
} }