Lingo.Type.RoleConnectionMetadata (Lingo v0.4.2)

Copy Markdown View Source

One of the application's role connection metadata records: a value users carry (see Lingo.OAuth2.update_role_connection/3) that guilds compare against to grant linked roles.

type is the comparison: :integer_less_than_or_equal, :integer_greater_than_or_equal, :integer_equal, :integer_not_equal, :datetime_less_than_or_equal, :datetime_greater_than_or_equal, :boolean_equal or :boolean_not_equal.

Summary

Types

metadata_type()

@type metadata_type() ::
  :integer_less_than_or_equal
  | :integer_greater_than_or_equal
  | :integer_equal
  | :integer_not_equal
  | :datetime_less_than_or_equal
  | :datetime_greater_than_or_equal
  | :boolean_equal
  | :boolean_not_equal

t()

@type t() :: %Lingo.Type.RoleConnectionMetadata{
  description: String.t(),
  description_localizations: %{required(String.t()) => String.t()} | nil,
  key: String.t(),
  name: String.t(),
  name_localizations: %{required(String.t()) => String.t()} | nil,
  type: metadata_type() | integer()
}