Fix multiline automod message match alerts being cut off
This commit is contained in:
parent
a10cb27757
commit
af360eaa73
1 changed files with 6 additions and 3 deletions
|
@ -1336,10 +1336,13 @@ export class AutomodPlugin extends ZeppelinPlugin<TConfigSchema, ICustomOverride
|
|||
const channel = this.guild.channels.get(matchResult.messageInfo.channelId);
|
||||
const channelMention = channel ? verboseChannelMention(channel) : `\`#${message.channel_id}\``;
|
||||
|
||||
return trimPluginDescription(`
|
||||
return (
|
||||
trimPluginDescription(`
|
||||
Matched ${this.getMatchedValueText(matchResult)} in message in ${channelMention}:
|
||||
${messageSummary(message)}
|
||||
`);
|
||||
`) +
|
||||
"\n" +
|
||||
messageSummary(message)
|
||||
);
|
||||
} else if (matchResult.type === "textspam") {
|
||||
const baseUrl = this.knub.getGlobalConfig().url;
|
||||
const archiveUrl = this.archives.getUrl(baseUrl, archiveId);
|
||||
|
|
Loading…
Add table
Reference in a new issue