discord_get_audit_log
Retrieve Discord server audit log entries to identify who performed moderation actions like bans, kicks, deletions, or channel and role changes, and why.
Instructions
Read the server's audit log — who did what (bans, kicks, deletions, channel/role changes) and why.
Needs View Audit Log. Use to answer "who deleted that channel" or "why was X banned".
Returns: Markdown table (time, actor, action, target, reason) or JSON list of entries
{id, time, actor{id, username}, action, target_id, reason, changes}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| action | No | Filter by action name, e.g. 'member_ban_add', 'message_delete', 'channel_create'. | |
| user_id | No | Only actions performed by this user or bot. | |
| guild_id | No | Server (guild) ID. Omit to use DISCORD_GUILD_ID from .env. | |
| response_format | No | 'markdown' for reading, 'json' for full structured data. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |