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) {
|
if (reference && reference.channelID === channel.id) {
|
||||||
const referenced = await channel.messages.fetch(reference.messageID);
|
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({
|
embed.fields.push({
|
||||||
name: oldMessage.format('MSGLOG_REPLY', { tag: referenced.author.tag, id: referenced.author.id }),
|
name: oldMessage.format('MSGLOG_REPLY', { tag: referenced.author.tag, id: referenced.author.id }),
|
||||||
value: oldMessage.format('MSGLOG_REPLY_VALUE', {
|
value: oldMessage.format('MSGLOG_REPLY_VALUE', {
|
||||||
content: referenced.content.length > 900 ? referenced.content.substring(0, 900) + '...' : referenced.content,
|
content,
|
||||||
link: referenced.url
|
link: referenced.url
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
@ -79,6 +79,9 @@ Message was in reply to user {tag} ({id}):
|
|||||||
**[Jump to message]({link})**
|
**[Jump to message]({link})**
|
||||||
{content}
|
{content}
|
||||||
|
|
||||||
|
[MSGLOG_REPLY_NOCONTENT]
|
||||||
|
**__Missing content.__**
|
||||||
|
|
||||||
[MSGLOG_FILTERED]
|
[MSGLOG_FILTERED]
|
||||||
The message was filtered:
|
The message was filtered:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user