mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 16:05:41 +00:00
Fix undefined access
This commit is contained in:
@@ -252,7 +252,7 @@ export class Message extends BaseClass {
|
||||
member_id: undefined,
|
||||
webhook_id: this.webhook_id ?? undefined,
|
||||
application_id: undefined,
|
||||
mentions: this.mentions.map((user) => {
|
||||
mentions: this.mentions?.map((user) => {
|
||||
if (user && !user.toPublicUser) console.trace("toPublic user missing!!!");
|
||||
return user?.toPublicUser?.() ?? user ?? undefined;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user