Skip to main content

Containers

Containers

note

This require the use of Components V2.

Containers are a new way to group components together. You can also specify an accent color (similar to embeds) and spoiler it.

.withComponents(
Container.of(
TextDisplay.of("A container without color, not spoiled")
),
Container.of(
Color.CINNABAR,
TextDisplay.of("A container with a color, not spoiled")
),
Container.of(
true,
TextDisplay.of("A container without color, and spoiled")
),
Container.of(
Color.CINNABAR,
true,
TextDisplay.of("A container with a color, and spoiled")
)
)