You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
It seems that it is pretty much impossible to use the mentioned events for the functionality. They lack a lot of information (for example who muted an user or who was the author of a message that got deleted).
More reliable is the Audit Log retrieveAuditLogs but they lack functionality to join the events. So it is extremely difficult to find the entry that corresponds to the given event.
All in all, it is likely better to just create an active audit-log poller and decorate and filter that.
Activity
Zabuzard commentedon Oct 25, 2021
It seems that it is pretty much impossible to use the mentioned events for the functionality. They lack a lot of information (for example who muted an user or who was the author of a message that got deleted).
More reliable is the Audit Log
retrieveAuditLogsbut they lack functionality to join the events. So it is extremely difficult to find the entry that corresponds to the given event.All in all, it is likely better to just create an active audit-log poller and decorate and filter that.
Zabuzard commentedon Oct 25, 2021
Seems I am hitting rate limiting on viewing the audit log and unfortunately there is no listener for it.