Container
A container component that groups and organizes other components in a message.
The Container component is the foundation for organizing other components in your messages. Similar to Discord's Action Row, it serves as a wrapper that can hold multiple components and apply consistent theming.
Component Structure
A Container is defined by its ability to hold other components and optionally apply an accent color to them. It's the primary way to group related components together in a message.
Creating a Container
To create a container, you need to create a class that extends the Container
class:
Usage Example
Here's how you might use a Container in a command:
Edit on GitHub
Last updated on