grom/component/mentionable_select

Types

pub type DefaultValue {
  UserValue(id: String)
  RoleValue(id: String)
}

Constructors

  • UserValue(id: String)
  • RoleValue(id: String)
pub type MentionableSelect {
  MentionableSelect(
    id: option.Option(Int),
    custom_id: String,
    placeholder: option.Option(String),
    default_values: option.Option(List(DefaultValue)),
    min_values: Int,
    max_values: Int,
    is_disabled: Bool,
  )
}

Constructors

Values

pub fn new(custom_id custom_id: String) -> MentionableSelect
Search Document