var trigger = audit_log_entry_created()
func main() {
send_text_message(Args{
channel_id: "CHANNEL_ID",
message_content: "Action Type ID: " + trigger.action_type_id,
})
}
Audit Log Entry Created
Event triggerServers
Triggers when an audit log entry is created.
Action Type ID is a numeric identifier for the audit log action.
Outputs
Action Type ID
Numeric audit log action type
Example: 20
Server ID
The ID of the server where the audit log entry was created
Example: 123456789012345678
Target ID
The ID of the target entity of the audit log entry
Example: 234567890123456789
User ID
The ID of the user who performed the action
Example: 345678901234567890
Entry ID
The ID of the audit log entry
Example: 456789012345678901
Reason
The reason provided for the action, if any
Example: Routine cleanup
Raw JSON
Raw audit log entry JSON payload
Example: {"action_type":20}
Build a bot using triggers like Audit Log Entry Created
Use this trigger in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
audit_log_entry_createdOutputs
| Field | InventScript name | Value |
|---|---|---|
| Action Type ID | action_type_id | e.g. "20" |
| Server ID | server_id | e.g. "123456789012345678" |
| Target ID | target_id | e.g. "234567890123456789" |
| User ID | user_id | e.g. "345678901234567890" |
| Entry ID | entry_id | e.g. "456789012345678901" |
| Reason | reason | e.g. "Routine cleanup" |
| Raw JSON | raw_json | e.g. "{\"action_type\":20}" |