Skip to content

Commit

Permalink
test: tested and added additional formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lcox74 committed Aug 7, 2024
1 parent a1cb311 commit 2ce2002
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion applications/news_moderation.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r ModerateNewsRule) OnMessage(ctx framework.MessageContext, channel *disco
}

// Send a direct message to the user
ctx.Session().ChannelMessageSend(dmChannel.ID, violation.Error())
ctx.Session().ChannelMessageSend(dmChannel.ID, "**Error**: "+violation.Error())

// Send a copy of the original content to the user
sendOriginalMessageAsCodeblock(ctx, dmChannel.ID, content)
Expand Down
2 changes: 1 addition & 1 deletion applications/rss_moderation.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (r ModerateRSSRule) OnMessage(ctx framework.MessageContext, channel *discor
}

// Send a direct message to the user
ctx.Session().ChannelMessageSend(dmChannel.ID, violation.Error())
ctx.Session().ChannelMessageSend(dmChannel.ID, "**Error**: "+violation.Error())

// Send a copy of the original content to the user
sendOriginalMessageAsCodeblock(ctx, dmChannel.ID, content)
Expand Down

0 comments on commit 2ce2002

Please sign in to comment.