crux_structs v0.2.3 Crux.Structs.AuditLog View Source

Represents a Discord Audit Log Object.

Link to this section Summary

Types

All available types that can be resolved into an audit log id.

t()

Functions

Creates a t:Crux.Structs.AuditLog.t/0 struct from raw data.

Link to this section Types

Link to this type

id_resolvable()

View Source (since 0.2.1)

Specs

All available types that can be resolved into an audit log id.

Specs

t() :: %Crux.Structs.AuditLog{
  audit_log_entries: %{
    required(Crux.Structs.Snowflake.t()) => Crux.Structs.AuditLogEntry.t()
  },
  integrations: %{
    required(Crux.Structs.Snowflake.t()) => Crux.Structs.Integration.t()
  },
  users: %{required(Crux.Structs.Snowflake.t()) => Crux.Structs.User.t()},
  webhooks: %{required(Crux.Structs.Snowflake.t()) => Crux.Structs.Webhook.t()}
}

Link to this section Functions

Link to this function

create(data)

View Source (since 0.1.6)

Specs

create(data :: map()) :: t()

Creates a t:Crux.Structs.AuditLog.t/0 struct from raw data.

Automatically invoked by Crux.Structs.create/2.