grom/component/container

Types

pub type Component {
  ActionRow(action_row.ActionRow)
  TextDisplay(text_display.TextDisplay)
  Section(section.Section)
  MediaGallery(media_gallery.MediaGallery)
  Separator(separator.Separator)
  File(file.File)
}

Constructors

pub type Container {
  Container(
    id: option.Option(Int),
    components: List(Component),
    accent_color: option.Option(Int),
    is_spoiler: Bool,
  )
}

Constructors

Values

pub fn new(containing components: List(Component)) -> Container
Search Document