fix: regression in allowedMentions when replying

backport #10866
This commit is contained in:
Elysia
2025-07-08 20:36:54 +07:00
parent b15cbdde8e
commit 3cf92a0493

View File

@@ -257,7 +257,9 @@ class MessagePayload {
username, username,
avatar_url: avatarURL, avatar_url: avatarURL,
allowed_mentions: allowed_mentions:
this.isMessage && this.target?.author?.id !== this.target?.client?.user?.id ? undefined : allowedMentions, this.isMessage && message_reference === undefined && this.target?.author?.id !== this.target?.client?.user?.id
? undefined
: allowedMentions,
flags, flags,
message_reference, message_reference,
attachments: this.options.attachments, attachments: this.options.attachments,