Fallback to empty array

This commit is contained in:
Rory&
2026-07-15 12:03:47 +02:00
parent c3df3c8c62
commit 86ab110abd
@@ -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(),