Crux v2020-03-17 17:55:51Z 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 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)

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

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.