Struct Container
zaun_bot::Container · Struct
pub struct Container { … }Builds a Components V2 types::Container.
Methods
Section titled “Methods”pub fn new() -> SelfAn empty container.
accent
Section titled “accent”pub fn accent(self, rgb: u32) -> SelfAccent colour, 0xRRGGBB.
pub fn text<impl Into<String>>(self, content: impl Into<String>) -> SelfAdds a text block.
section
Section titled “section”pub fn section(self, section: Section) -> SelfAdds a section.
pub fn row(self, row: ActionRow) -> SelfAdds a row of buttons or a select.
separator
Section titled “separator”pub fn separator(self) -> SelfAdds a divider line.
pub fn build(self) -> ContainerThe finished container.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Default