discord_get_audit_log
Fetch the server's audit log to review administrative actions like bans, kicks, and role changes, including who performed them and when.
Instructions
Fetch the server's audit log — a 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 |