forked from Galactic/galactic-bot
fixed a thing
This commit is contained in:
parent
1d499560a1
commit
fb06170380
@ -429,10 +429,12 @@ class GuildLogger extends Observer {
|
||||
|
||||
if (reference && reference.channelID === channel.id) {
|
||||
const referenced = await channel.messages.fetch(reference.messageID);
|
||||
// eslint-disable-next-line no-nested-ternary
|
||||
const content = referenced.content ? referenced.content.length > 900 ? referenced.content.substring(0, 900) + '...' : referenced.content : oldMessage.format('MSGLOG_REPLY_NOCONTENT');
|
||||
embed.fields.push({
|
||||
name: oldMessage.format('MSGLOG_REPLY', { tag: referenced.author.tag, id: referenced.author.id }),
|
||||
value: oldMessage.format('MSGLOG_REPLY_VALUE', {
|
||||
content: referenced.content.length > 900 ? referenced.content.substring(0, 900) + '...' : referenced.content,
|
||||
content,
|
||||
link: referenced.url
|
||||
})
|
||||
});
|
||||
|
@ -79,6 +79,9 @@ Message was in reply to user {tag} ({id}):
|
||||
**[Jump to message]({link})**
|
||||
{content}
|
||||
|
||||
[MSGLOG_REPLY_NOCONTENT]
|
||||
**__Missing content.__**
|
||||
|
||||
[MSGLOG_FILTERED]
|
||||
The message was filtered:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user