This commit is contained in:
Erik 2021-06-22 23:59:12 +03:00
parent fc1d74d800
commit 355b671aa5
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -166,7 +166,8 @@ class ChannelHandler {
// eslint-disable-next-line camelcase
icon_url: user.displayAvatarURL({ dynamic: true })
},
description: entry.content,
// eslint-disable-next-line no-nested-ternary
description: entry.content && entry.content.length ? entry.content.length > 2000 ? `${entry.content.substring(0, 2000)}...\n\n**Content cut off**` : entry.content : `**__MISSING CONTENT__**`,
color: mem?.highestRoleColor || 0,
fields: [],
timestamp: new Date(entry.timestamp)