grom/component/channel_select

Types

pub type ChannelSelect {
  ChannelSelect(
    id: option.Option(Int),
    custom_id: String,
    channel_types: option.Option(List(ChannelType)),
    placeholder: option.Option(String),
    default_values: option.Option(List(DefaultValue)),
    min_values: Int,
    max_values: Int,
    is_disabled: Bool,
  )
}

Constructors

pub type ChannelType {
  Text
  Dm
  Category
  Announcement
  Forum
  Media
}

Constructors

  • Text
  • Dm
  • Category
  • Announcement
  • Forum
  • Media
pub type DefaultValue {
  DefaultValue(id: String)
}

Constructors

  • DefaultValue(id: String)

Values

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