REST API endpoints for Discord guilds.
All functions return {:ok, result} or {:error, reason}.
Summary
Functions
Gets the audit log for a guild.
Gets channels in a guild.
Gets a guild by ID.
Gets invites for a guild.
Modifies a guild.
Begins a guild prune.
Gets the number of members that would be pruned.
Functions
@spec audit_log( String.t() | integer(), keyword() ) :: {:ok, %{entries: [EDA.AuditLog.Entry.t()], users: [map()], webhooks: [map()]}} | {:error, term()}
Gets the audit log for a guild.
Options
:user_id- Filter by user who performed the action:action_type- Filter by action type (integer or atom viaEDA.AuditLog.action_type/1):before- Get entries before this entry ID:after- Get entries after this entry ID:limit- Number of entries (1-100, default 50)
Gets channels in a guild.
Gets a guild by ID.
Gets invites for a guild.
Modifies a guild.
Begins a guild prune.
Gets the number of members that would be pruned.