crux_structs v0.1.3 Crux.Structs.Guild View Source

Represents a Discord Guild Object.

Differences opposed to the Discord API Object:

  • :emojis is a MapSet of emoji ids
  • :channels is a MapSet of channel ids
  • :presences does not exists at all

Link to this section Summary

Functions

Creates a Crux.Structs.Guild struct from raw data

Link to this section Types

Link to this type t() View Source
t() :: %Crux.Structs.Guild{
  afk_channel_id: integer() | nil,
  afk_timeout: integer(),
  application_id: integer() | nil,
  channels: MapSet.t(integer()),
  default_message_notifications: integer(),
  embed_enabled: boolean(),
  emojis: MapSet.t(integer()),
  explicit_content_filter: integer(),
  features: MapSet.t(String.t()),
  icon: String.t() | nil,
  id: integer(),
  joined_at: String.t(),
  large: boolean(),
  member_count: integer(),
  members: %{optional(integer()) => Crux.Structs.Member.t()},
  mfa_level: integer(),
  name: String.t(),
  owner_id: String.t(),
  region: String.t(),
  roles: %{optional(integer()) => Crux.Structs.Role.t()},
  splash: term(),
  unavailable: boolean(),
  verification_level: integer(),
  voice_states: %{optional(integer()) => Crux.Structs.VoiceState.t()},
  widget_enabled: boolean()
}

Link to this section Functions

Creates a Crux.Structs.Guild struct from raw data.

Automatically invoked by Crux.Structs.create/2.