Constructs a new Container.
Optional initial data for the container.
Adds components to the container.
The components to add. Can be a single component, an array of components, or multiple components as arguments.
The updated Container instance.
Sets the accent color for the container.
The color resolvable (e.g., hex code, color name, integer).
The updated Container instance.
Sets the components for the container, replacing any existing components.
The components to set. Can be a single component, an array of components, or multiple components as arguments.
The updated Container instance.
Sets the ID for the container.
The ID to set.
The updated Container instance.
Sets whether the container's content should be visually marked as a spoiler.
Whether the content is a spoiler (defaults to true).
The updated Container instance.
Represents a container component builder. Containers group other components together.
Example