Nostrum.Struct.Guild.AuditLogEntry (nostrum v0.11.0-dev)

View Source

Represents a single entry in the guild's audit log.

Summary

Types

An audit log event identifier. See Audit log events

Individual changes of this audit log entry. Change keys are documented here

The ID of this entry

The reason for this change, if applicable

t()

The ID of the affected entity

The user who made the changes

Types

action_type()

@type action_type() :: pos_integer()

An audit log event identifier. See Audit log events

changes()

@type changes() ::
  [
    %{
      optional(:old_value) => change_value(),
      optional(:new_value) => change_value(),
      key: String.t()
    }
  ]
  | nil

Individual changes of this audit log entry. Change keys are documented here

id()

@type id() :: Nostrum.Snowflake.t()

The ID of this entry

options()

@type options() :: map() | nil

Optional audit entry info

reason()

@type reason() :: String.t() | nil

The reason for this change, if applicable

t()

@type t() :: %Nostrum.Struct.Guild.AuditLogEntry{
  action_type: action_type(),
  changes: changes(),
  id: id(),
  options: options(),
  reason: reason(),
  target_id: target_id(),
  user_id: user_id()
}

target_id()

@type target_id() :: String.t() | nil

The ID of the affected entity

user_id()

@type user_id() :: Nostrum.Struct.User.id()

The user who made the changes