crux_structs v0.2.3 Crux.Structs.GuildPreview View Source
Represents a Discord Guild Preview Object
Link to this section Summary
Functions
Creates a t:Crux.Structs.GuildPreview.t/0 struct from raw data.
Link to this section Types
Specs
t() :: %Crux.Structs.GuildPreview{
approximate_member_count: non_neg_integer(),
approximate_presence_count: non_neg_integer(),
description: String.t(),
discovery_splash: String.t() | nil,
emojis: %{required(Crux.Structs.Snowflake.t()) => Crux.Structs.Emoji.t()},
features: [String.t()],
icon: String.t() | nil,
id: Crux.Structs.Snowflake.t(),
name: String.t(),
splash: String.t() | nil
}
Link to this section Functions
Specs
Creates a t:Crux.Structs.GuildPreview.t/0 struct from raw data.
Automatically invoked by
Crux.Structs.create/2.