fix mentions in DMs

This commit is contained in:
Mathium05
2026-07-27 21:08:37 -05:00
parent d9613843f6
commit 688ecb78b5
+2 -1
View File
@@ -573,6 +573,7 @@ class Message extends SnowFlake {
mentionsuser(userd: User | Member) {
if (this.mention_everyone) return true;
if (this.id === "1531482863320101422") console.warn(this.mentions);
if (userd instanceof User) {
return !!this.mentions.has(userd.id);
} else if (userd instanceof Member) {
@@ -732,7 +733,7 @@ class Message extends SnowFlake {
premessage = this.channel.messages.get(this.channel.idToPrev.get(this.id) as string);
}
if (
this.mentionsuser(this.guild.member) ||
this.mentionsuser(this.localuser.user) ||
this.ephemeral ||
this.interaction?.user.id === this.localuser.user.id
) {