discord_get_audit_log
Fetch a Discord server's audit log to trace administrative actions like bans, kicks, and role changes. View who performed each action, when, and why, with optional filtering by action type.
Instructions
Fetch the server's audit log, the record of administrative actions (bans, kicks, role/channel changes, etc.) with who performed them and when. Requires the View Audit Log permission. Returns { entries: [...] } with id, action, executor, target, reason, createdAt. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many recent entries to fetch (1–100). Default 25. | |
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| action_type | No | Optional Discord AuditLogEvent numeric ID to filter by (e.g. 22 = MemberBanAdd). Accepts event IDs newer than the bundled enum. Omit for all action types. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes |