crux_structs v0.2.3 Crux.Structs.Integration View Source

Represents a Discord Integration Object.

Link to this section Summary

Types

All available types that can be resolved into an integration id.

t()

Functions

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

Link to this section Types

Link to this type

id_resolvable()

View Source (since 0.2.3)

Specs

All available types that can be resolved into an integration id.

Specs

t() :: %Crux.Structs.Integration{
  account: map(),
  enable_emoticons: boolean() | nil,
  enabled: boolean(),
  expire_behavior: 0..1,
  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)

Specs

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

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

Automatically invoked by Crux.Structs.create/2.