audit_log
Retrieve a Discord server's audit log newest first to see who performed bans, kicks, deletions, role, channel, permission changes, and AutoMod blocks; filter by action, user, target, or time.
Instructions
The server audit log, newest first: who did what (bans, kicks, deletes, role/channel/permission changes, AutoMod blocks...). action = name (member_ban_add, message_delete, channel_update, ...) or number; user = who acted; target = id of the affected thing. before/after = entry ids or times.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | ||
| user | No | ||
| after | No | ||
| guild | No | ||
| limit | No | ||
| action | No | ||
| before | No | ||
| target | No |