Skip to content

Commit

Permalink
fix markdown escaping in modlog messages
Browse files Browse the repository at this point in the history
closes #19
  • Loading branch information
Dinty1 committed Jul 9, 2024
1 parent 2e2f14e commit 582d37c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/ModLogManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ export default class ModLogManager extends Module {
const target = await resolver.resolveUser(entry.targetId);
const executor = await resolver.resolveUser(entry.executorId);
let embed = new EmbedBuilder()
.setTitle(`${action.actioned}: ${target.tag}`)
.setTitle(`${action.actioned}: ${StringUtil.escapeMarkdown(target.tag)}`)
.setAuthor({
name: StringUtil.escapeMarkdown(executor.tag),
name: executor.tag,
iconURL: `https://cdn.discordapp.com/avatars/${executor.id}/${executor.avatar}.png`
})
.setColor(action.color)
Expand Down

0 comments on commit 582d37c

Please sign in to comment.