discord_get_audit_log
Fetch a server's audit log to view administrative actions like bans, kicks, and role changes. Specify guild ID and optional filters for recent entries.
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 a JSON array (id, action, executor, target, reason, timestamp). Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guild_id | Yes | Discord server (guild) ID (snowflake). | |
| limit | No | How many recent entries to fetch (1–100). Default 25. | |
| action_type | No | Optional Discord AuditLogEvent numeric ID to filter by (e.g. 22 = MemberBanAdd). Omit for all action types. |