grom/component/role_select

Types

pub type DefaultValue {
  DefaultValue(id: String)
}

Constructors

  • DefaultValue(id: String)
pub type InteractionResponse {
  InteractionResponse(
    id: Int,
    custom_id: String,
    selected_roles_ids: List(String),
  )
}

Constructors

  • InteractionResponse(
      id: Int,
      custom_id: String,
      selected_roles_ids: List(String),
    )
pub type RoleSelect {
  RoleSelect(
    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) -> RoleSelect
Search Document