mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-26 03:41:16 +00:00
Fallback to empty array
This commit is contained in:
@@ -109,8 +109,8 @@ router.patch(
|
||||
author: new_message.author!.toPartialUser(),
|
||||
attachments: new_message.attachments?.map((x) => x.toJSON()) ?? [],
|
||||
embeds: new_message.embeds,
|
||||
mentions: new_message.mentions.map((u) => u.toPartialUser()),
|
||||
mention_roles: new_message.mention_roles.map((r) => r.id),
|
||||
mentions: new_message.mentions?.map((u) => u.toPartialUser()) ?? [],
|
||||
mention_roles: new_message.mention_roles?.map((r) => r.id) ?? [],
|
||||
mention_everyone: new_message.mention_everyone ?? false,
|
||||
pinned: new_message.pinned,
|
||||
timestamp: new_message.timestamp.toISOString(),
|
||||
|
||||
Reference in New Issue
Block a user