seyfert
    Preparing search index...

    Class Container

    Represents a container component builder. Containers group other components together.

    const container = new Container()
    .addComponents(
    new TextDisplay('This is text inside a container!'),
    new ActionRow().addComponents(new Button().setLabel('Click me!'))
    )
    .setColor('Blue');

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    The components held within this container.

    data: Partial<TYPE> = {}

    Methods

    • Sets the accent color for the container.

      Parameters

      • color: ColorResolvable

        The color resolvable (e.g., hex code, color name, integer).

      Returns Container

      The updated Container instance.

    • Sets whether the container's content should be visually marked as a spoiler.

      Parameters

      • spoiler: boolean = true

        Whether the content is a spoiler (defaults to true).

      Returns Container

      The updated Container instance.