Adds button to the response.
$addButton[new row?;interaction ID/url;label;style;(disable?;emoji;message ID)]
(Type: Bool || Flag: Required): If set to
yesthe button will appear in a new row. If it's set to
nothe button will appear in the same row as a previous button.
A message can have a maximum of 25 buttons (5 rows of 5 buttons).
(Type: String, URL || Flag: Required): Depending on the button type, you either set it to
interaction IDwhich is then used in
URLif it's a link button.
(Type: String || Flag: Emptiable): The text value visible on the button.
(Type: Enum || Flag: Required): It's used to specify the button's background color. If the button has a link/url you have to set the value to
link. Check this section for more details.
(Type: Bool || Flag: Vacantable): If set to
yesthe button can't be pressed. Defaults as
(Type: Emoji || Flag: Vacantable): Adds an emoji inside the button. Emojis have to be either pasted as unicode or be in the following format
<:emoji name:emoji ID>.
(Type: Snowflake || Flag: Vacantable): Adds a button to the provided message ID. It's important to note that provided message ID author has to be the bot.
Interactive buttons can't have duplicated
ID's in the same message. So for example, you can't have two buttons with the ID set to
urlis used in
interaction ID/urlargument, it has to start with
Buttons can have different styles (background colors).
Here, are all possible values for
style function argument.
primary: Blue button
secondary: Gray button
success: Green button
danger: Red button
link: Redirect button
linkstyle is used, the button won't send any interactions!
$nomention Hi $addButton[no;test;Say hello!;primary;no;]
For more info, see the Button Guide.