Fix leaking private User data in mentions

This commit is contained in:
Ahmed A
2026-02-13 00:03:48 +01:00
committed by Rory&
parent 4d711c58bb
commit 11c0fdbdac
+1
View File
@@ -222,6 +222,7 @@ export class Message extends BaseClass {
member_id: undefined,
webhook_id: this.webhook_id ?? undefined,
application_id: undefined,
mentions: this.mentions.map((user) => user.toPublicUser() ?? undefined),
nonce: this.nonce ?? undefined,
tts: this.tts ?? false,