container

inline fun container(vararg components: ContainerChildComponent, uniqueId: Int = -1, accentColor: Int? = null, spoiler: Boolean = false, block: InlineContainer.() -> Unit = {})(source)
inline fun container(components: Collection<ContainerChildComponent> = emptyList(), uniqueId: Int = -1, accentColor: Int? = null, spoiler: Boolean = false, block: InlineContainer.() -> Unit = {})(source)

See Container.

This requires Components V2 to be enabled.

Parameters

components

The components of this container

uniqueId

Unique identifier of this component

accentColor

Color of the container's left side, you can use rgb, hsb or hex for it

spoiler

Hides the file until the user clicks on it

block

Lambda allowing further configuration

See also