kitazith/component
Types
Learn more: Component Reference - Documentation - Discord
pub type Component {
Component(raw: json.Json)
TextDisplayComponent(text_display.TextDisplay)
SectionComponent(section.Section)
MediaGalleryComponent(media_gallery.MediaGallery)
FileComponent(file.File)
SeparatorComponent(separator.Separator)
ContainerComponent(container.Container)
}
Constructors
-
Component(raw: json.Json)Escape hatch for component shapes not modeled by this library.
-
TextDisplayComponent(text_display.TextDisplay) -
SectionComponent(section.Section) -
MediaGalleryComponent(media_gallery.MediaGallery) -
FileComponent(file.File) -
SeparatorComponent(separator.Separator) -
ContainerComponent(container.Container)
Values
pub fn container(container: container.Container) -> Component
pub fn media_gallery(
media_gallery: media_gallery.MediaGallery,
) -> Component
pub fn section(section: section.Section) -> Component
pub fn separator(separator: separator.Separator) -> Component
pub fn text_display(
text_display: text_display.TextDisplay,
) -> Component