crux_structs v0.1.6 Crux.Structs.Guild View Source
Represents a Discord Guild Object.
Differences opposed to the Discord API Object:
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
(since 0.1.0)
t() :: %Crux.Structs.Guild{ afk_channel_id: Crux.Rest.snowflake() | nil, afk_timeout: integer(), application_id: Crux.Rest.snowflake() | nil, channels: MapSet.t(Crux.Rest.snowflake()), default_message_notifications: integer(), embed_enabled: boolean(), emojis: MapSet.t(Crux.Rest.snowflake()), explicit_content_filter: integer(), features: MapSet.t(String.t()), icon: String.t() | nil, id: Crux.Rest.snowflake(), joined_at: String.t(), large: boolean(), member_count: integer(), members: %{optional(Crux.Rest.snowflake()) => Crux.Structs.Member.t()}, mfa_level: integer(), name: String.t(), owner_id: String.t(), region: String.t(), roles: %{optional(Crux.Rest.snowflake()) => Crux.Structs.Role.t()}, splash: term(), unavailable: boolean(), verification_level: integer(), voice_states: %{ optional(Crux.Rest.snowflake()) => 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
.