Skip to content

Discord chat: "Report to moderators" on any message in the server - #449

Merged
TripleU613 merged 1 commit into
mainfrom
discord-chat/reports
Nov 25, 2026
Merged

TripleU613 merged 1 commit into
mainfrom
discord-chat/reports

Conversation

@TripleU613

Copy link
Copy Markdown
Owner

Re-opened from #446 (closed when the stack below it merged).

Message command (right-click → Apps → Report to moderators). Ephemeral "Sent" reply; a job posts to #mod-log and messages the forum moderators group with the text in a plain code block (no mentions, fences defused). Configured guild only, 5/hour/member, works with slash commands off. Default off (discord_chat_reports_enabled).

🤖 Generated with Claude Code

https://claude.ai/code/session_01BUGDaR7qv2d8CuVp7UGSTs

discord_chat_reports_enabled registers a message command, so right-clicking
or long-pressing a message → Apps → "Report to moderators" sends it to the
moderators. The reporter gets a private "Sent" reply at once; a job posts the
report to the moderators' log channel and messages the forum's moderators
group with the reporter and author (and their forum accounts when linked),
a link to the message and its text.

The reported text is untrusted: on the forum it goes in a plain code block
with its own fences defused, accounts are shown as profile links rather
than @mentions, and the log line pings nobody. Only reports from the
configured server are taken, 5 per member per hour. It works whether or not
the slash commands are on; the registered list now comes from
Commands.definitions. Off by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BUGDaR7qv2d8CuVp7UGSTs
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T19:01:48.005052Z caa73f5 PR opened
🔒 Security Review ✅ Completed 2026-11-25T19:03:03.960756Z caa73f5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@TripleU613
TripleU613 merged commit 7fcb0bb into main Nov 25, 2026
8 checks passed
@TripleU613
TripleU613 deleted the discord-chat/reports branch November 25, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant