Skip to content

Conversation

@vcarl
Copy link
Member

@vcarl vcarl commented Jan 17, 2026

  • Add kick/ban event logging to user threads
  • Improve report message formatting
    • Move reaction list to quoted message
    • Include message stats in the tiny preview
    • Move attribution label ("by vcarl") for better readability

vcarl and others added 4 commits January 16, 2026 16:10
Listen for GuildBanAdd and GuildMemberRemove events to log external
moderation actions (kicks/bans performed via Discord UI) to user threads.
Uses audit log to identify executor and distinguish kicks from voluntary leaves.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds kick/ban event logging to user threads and improves report message formatting. The changes track moderation actions (kicks and bans) by listening to Discord events, querying audit logs for details, and logging them to persistent user threads.

Changes:

  • New moderation action logger that captures kick/ban events and reports them to user threads
  • Improved report formatting by moving reactions and attachments to quoted messages, reorganizing attribution labels, and adding stats to message previews
  • Added GuildModeration intent to enable listening to ban/kick events

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
app/discord/modActionLogger.ts New file that handles Discord ban/kick events, queries audit logs, and reports actions to user threads
app/helpers/modLog.ts Adds reportModAction function for logging mod actions, moves attachment/reaction embeds to quoted messages, improves formatting of report messages
app/helpers/discord.ts Refactors attachment description formatting and removes "Reactions" title from reaction embeds
app/discord/gateway.ts Registers the new mod action logger on bot initialization
app/discord/client.server.ts Adds GuildModeration intent to enable ban/kick event listening
app/discord/automod.ts Changes log level from debug to info for timeout action skipping

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vcarl vcarl merged commit d673164 into main Jan 17, 2026
4 checks passed
@vcarl vcarl deleted the vc-more-track-fixes branch January 17, 2026 05:41
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.

(attempt to) Log platform-initiated mod actions like kicks + bans to the user modlog thread

2 participants