diff --git a/structure/client/components/observers/GuildLogging.js b/structure/client/components/observers/GuildLogging.js index bf8fbaf..abba962 100644 --- a/structure/client/components/observers/GuildLogging.js +++ b/structure/client/components/observers/GuildLogging.js @@ -100,7 +100,7 @@ class GuildLogger extends Observer { name: `${message.author.tag} (${message.author.id})`, icon_url: message.author.displayAvatarURL({ size: 32 }) //eslint-disable-line camelcase }, - description: Util.escapeMarkdown(message.content).replace(/\\n/gu, ' '), + description: Util.escapeMarkdown(message.content)?.replace(/\\n/gu, ' '), color: CONSTANTS.COLORS.RED, footer: { text: `Message deleted in #${message.channel.name} | Message ID: ${message.id}` diff --git a/util/filterPresets.json b/util/filterPresets.json index 6573cdd..7d26353 100644 --- a/util/filterPresets.json +++ b/util/filterPresets.json @@ -1,7 +1,7 @@ { "regex": { "slurs": [ - "n(ae|ea|ji|j|y|i|x|!|1|\\||l)(gg?|qq|99?|bb)(?!ht)((e|3)r|let|ur|\\s?nog|y|ah?|or)?s?", + "n(ae|ea|ji|j|y|i|x|!|1|\\||l)(gg?|qq|99?|bb)(?!(ht|el))((e|3)r|let|ur|\\s?nog|y|ah?|or)?s?", "(?