Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Audit Log → Get Guild Audit Log

AI-generated

Summary

Retrieve a guild’s audit log, with optional filters for the user who performed an action, event type, and entry ID range. Set the maximum number of entries to return; the result includes the audit log data returned by Discord.

Inputs

  • Authentication — Choose Bot Token (default) or OAuth2 (User Token).
  • Guild (required) — Guild snowflake ID to retrieve the audit log for.
  • User ID — Filter entries to actions performed by this Discord user, using their snowflake ID.
  • Action Type — Filter by audit log event type, or Any to include all types.
  • Before — Return entries with IDs older than this snowflake ID.
  • After — Return entries with IDs newer than this snowflake ID.
  • Limit — Maximum number of entries to return; defaults to 50, with a UI range of 1–100.
  • Request Options — Optional request settings for batching, SSL certificate validation, proxy, and timeout.

Output shape

A single response containing the guild audit log data returned by Discord.

The optional filters are sent as query parameters when populated. The limit controls the maximum result count; pagination behavior is not specified by the operation inputs.

Links

Discussion