audit_log_get
Fetch audit log entries from a Discord guild to trace moderation actions such as kicks or bans. Filter by user or action type for targeted incident forensics.
Instructions
Purpose: Fetch audit log entries for a guild.
When to use: investigate "who kicked X?", post-incident forensics.
Example: {guild_id:"999000999000999000", limit:50, action_type:20} (action_type 20 = MEMBER_KICK)
Returns: {entries:[{id, target_id, user_id, action_type, reason}], count}. Structured reason values remain raw moderator-controlled data; the human-readable text response fences them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max entries (1-100, default 50) | |
| user_id | No | Filter to entries triggered by this user | |
| guild_id | Yes | Guild to query | |
| action_type | No | Filter by Discord audit action type |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||