Skip to main content

How to create a container message

To create containers, discord Ui components are used. Here is an example on how to create a minimum container message
,container create {container}$v{text: this is the text field}$v{separator: spacing=1}$v{button: Get role; style: gray; role: role_name}
{button: } variable has many different use cases, below will show examples:

Button Variables

  1. {button: name; style: gray; message: the message to show}
  2. {button: name; style: link; url: https://example.com}
  3. {button: name; style: gray; role: role_name}
Button variables can also use the {embed} and {container} variables for {message: } arguments, below is an example:
Up to 5 buttons can be added to a single container message

Full Container building example

,container create {container}
{section: this is a section field; thumbnail: {guild.icon}}
{text: this is example text 1}
{separator: spacing=1}
{text: this is example text 2}
{separator: spacing=2}
{text: this is example text 3}
{separator: spacing=1}
{color: ffffff}
{image: {user.avatar} | {guild.icon} | {user.avatar}}
{section: this is a section field; thumbnail: {guild.icon}}
{button: my button; style: gray; message: this is a normal message}
{button: role button; style: gray; role: members}
{button: link; style: link; url: https://kayo.bot}
Users cannot set a role that is higher than their top role when using the {button: ... role: } variable
You are allowed to use multiple {section: example; thumbnail: url}, and {text: example} fields or less if you desire

Button colors

1. primary - blue - blurple
2. Secondary - gray - grey
3. success - green
4. danger - red
Colors does not work for link buttons. containers CANNOT STORE emojis it does not share a server with