Adds "this-is-scam" message context command#1505
Open
Zabuzard wants to merge 10 commits into
Open
Conversation
SquidXTV
previously approved these changes
Jun 19, 2026
surajkumar
previously approved these changes
Jun 19, 2026
firasrg
reviewed
Jun 19, 2026
Contributor
There was a problem hiding this comment.
Thank you @Zabuzard for the great work you've put into this. I'm genuinely impressed by the scope of the changes and the amount of effort behind them. I've left comments, mostly focused on long-term maintainability and readability. I didn't spend much time reviewing the logic itself, as I trust you've given that aspect the attention it deserves.
christolis
previously approved these changes
Jun 20, 2026
christolis
left a comment
Member
There was a problem hiding this comment.
LGTM. Thank you for your contribution 👍
2bd77ea
Member
Author
SquidXTV
previously approved these changes
Jun 22, 2026
|
SquidXTV
approved these changes
Jun 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Overview
This adds a new message context command (right click message) called
this-is-scam. It acts as the primary way for users to report scam to mods.Mods then get presented a quick way to handle the scam properly by automatically deleting all messages from the user and putting them under quarantine through a single button press!
Internally this works by quarantine, ban (delete messages from one day), unban in that order. The user ends up being kicked out of the guild (due to the ban) but can immediately rejoin (due to the unban), but remains quarantined.
Other
The following extra situations are handled gracefully via in-memory caches:
Also, an appropriate entry in the audit-log of the user (
/audit) is created.Attachments are spelled out so it becomes easier for devs later on to edit
ScamBlockeraccordingly.Code
The integration is minimal and simple, just a straightforward single class is added
ThisIsScamCommand.java, thats it. No config changes, everything easy.Impressions
Context Menu
Response
What mods see
No scam
Yes scam
DM
Quarantined
Audit Log
Edge cases
Error