crux_structs v0.2.2 Crux.Structs.Integration View Source

Represents a Discord Integration Object.

Link to this section Summary

Functions

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

Link to this section Types

Link to this type

t() View Source (since 0.2.2)
t() :: %Crux.Structs.Integration{
  account: map(),
  enabled: boolean(),
  expire_behavior: integer(),
  expire_grace_period: integer(),
  id: Crux.Structs.Snowflake.t(),
  name: String.t(),
  role_id: Crux.Structs.Snowflake.t(),
  synced_at: String.t(),
  syncing: boolean(),
  type: String.t(),
  user: Crux.Structs.Snowflake.t()
}

Link to this section Functions

Link to this function

create(data) View Source (since 0.2.2)
create(data :: map()) :: t()

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

Automatically invoked by Crux.Structs.create/2.