Skip to content

Conversation

@FloatingMilkshake
Copy link
Collaborator

Closes #324

Adds the bool useCodeBlock parameter to InvestigationsHelpers.SendInfringingMessageAsync, set to true when auto-warning for words matching exploits.txt. This puts the text going into the embed description in #investigations into a code block.

This will also use a code block for the "Match" field, as that usually has the same issue as the embed description. That part is not controlled by useCodeBlock however, as it looks like there are other cases where extraField (what is used to add the "Match" field) is passed a code block manually

This PR also adds the missing parameters from the SendInfringingMessageAsync overload that accepts a MockDiscordMessage to the one that accepts a DiscordMessage, just for consistency

Copy link
Owner

@Erisa Erisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with 2 nitpicks

@github-project-automation github-project-automation bot moved this to Approved, awaiting merge in Cliptok todo Dec 12, 2025
@FloatingMilkshake FloatingMilkshake merged commit 9d5c68c into main Dec 12, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Approved, awaiting merge to Done in Cliptok todo Dec 12, 2025
@FloatingMilkshake FloatingMilkshake deleted the milkshake/investigations-codeblock branch December 12, 2025 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Todo: Show raw message text in investigations for exploits.txt

2 participants