Get audit log
get_audit_logBrowse your Discord server's audit log, optionally filtering by action type or user, to track important events.
Instructions
Browse the server's audit log. Optionally filter by action type or the user who performed the action. Requires View Audit Log permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Filter by the user who performed the action (id, @mention, or username). | |
| limit | No | Number of entries to fetch (1-100). Defaults to 25. | |
| action | No | Filter by action type name, e.g. 'MemberKick', 'MemberBan', 'ChannelCreate', 'MessageDelete'. Uses the AuditLogEvent enum name. | |
| server | No | Server (guild) name or id. Optional when the bot is in a single server or DISCORD_GUILD_ID is set. |