Lingo.Api.AuditLog (Lingo v0.4.2)

Copy Markdown View Source

Guild audit logs.

Every function returns {:ok, result}, :ok when Discord sends no body, or {:error, %Lingo.Error{}}. Calls go to the current bot (see Lingo.with_bot/2).

Summary

Functions

Fetches a guild's audit log, optionally filtered by user_id:, action_type: (an atom like :member_ban_add, see Lingo.Type.AuditLogEntry), before:, after: and limit:.

Functions

get(guild_id, opts \\ [])

Fetches a guild's audit log, optionally filtered by user_id:, action_type: (an atom like :member_ban_add, see Lingo.Type.AuditLogEntry), before:, after: and limit:.