Remedy.Schema.User (Remedy v0.6.8) View Source

User Schema

Link to this section Summary

Link to this section Types

Specs

t() :: %Remedy.Schema.User{
  __meta__: term(),
  accent_color: integer(),
  avatar: String.t(),
  banner: String.t(),
  bot: boolean(),
  discriminator: integer(),
  email: String.t(),
  flags: UserFlags.t(),
  id: Sunbake.Snowflake.t(),
  inserted_at: term(),
  locale: String.t(),
  mfa_enabled: boolean(),
  premium_type: integer(),
  presence: term(),
  public_flags: integer(),
  remedy_system: term(),
  system: boolean(),
  updated_at: term(),
  username: String.t(),
  verified: boolean()
}

Link to this section Functions

Link to this function

avatar(user, size \\ nil)

View Source

Specs

avatar(%{:avatar => nil | binary(), optional(any()) => any()}, nil | integer()) ::
  binary()

Retreive a URL of a User.

Link to this function

changeset(model \\ %__MODULE__{}, params)

View Source

Specs

mention(t()) :: String.t()

Mention a user.

Link to this function

system_changeset(model \\ %__MODULE__{}, params)

View Source