discord_gleam/types/component_response

Types

pub type ComponentResponse {
  StringSelectResponse(
    id: Int,
    custom_id: String,
    values: List(String),
  )
  TextInputResponse(id: Int, custom_id: String, value: String)
  UserSelectResponse(
    id: Int,
    custom_id: String,
    resolved: ResolvedData,
    values: List(snowflake.Snowflake(snowflake.User)),
  )
  RoleSelectResponse(
    id: Int,
    custom_id: String,
    resolved: ResolvedData,
    values: List(snowflake.Snowflake(snowflake.Role)),
  )
  MentionableSelectResponse(
    id: Int,
    custom_id: String,
    resolved: ResolvedData,
    values: List(Mentionable),
  )
  ChannelSelectResponse(
    id: Int,
    custom_id: String,
    resolved: ResolvedData,
    values: List(snowflake.Snowflake(snowflake.Channel)),
  )
  TextDisplayResponse
  LabelResponse(component: ComponentResponse)
  FileUploadResponse(
    id: Int,
    custom_id: String,
    values: List(snowflake.Snowflake(snowflake.Attachment)),
  )
  RadioGroupResponse(
    id: Int,
    custom_id: String,
    value: option.Option(String),
  )
  CheckboxGroupResponse(
    id: Int,
    custom_id: String,
    values: List(String),
  )
  CheckboxResponse(id: Int, custom_id: String, value: Bool)
}

Constructors

pub type Mentionable {
  MentionableUser(snowflake.Snowflake(snowflake.User))
  MentionableRole(snowflake.Snowflake(snowflake.Role))
}

Constructors

Values

pub fn resolved_data_decoder() -> decode.Decoder(ResolvedData)
Search Document