Skip to content

Add mod audit logs #222

@Zabuzard

Description

@Zabuzard

For moderators, it is important to be able to easily audit all moderative actions:

  • User was banned
  • User was unbanned
  • User was kicked
  • User was muted
  • User was unmuted
  • User deleted a message of another user

The Discord Audit Log does not provide good filtering tools for that and hence is too verbose as an alternative. The channels #mod_commands and #commands originally have been intended to fulfill this role but mods and staff dont always do their actions via bot-commands but also with the Discord UI. And with the slash commands of this bot the lines will blur even further.

A better alternative is to just let the bot hook on all mentioned actions (regardless how they were triggered in the first place) and log them into a dedicated channel which mods then can easily read and follow.

As far as implementation goes, here is a list of useful JDA methods:

  • onGuildBan, onGuildUnban
  • onGuildMemberRemove
  • onGuildMemberRoleAdd, onGuildMemberRoleRemove
  • onGuildMessageDelete
  • retrieveAuditLogs

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions