Getting Started with Buttons
The Basics
Adding Buttons to Commands
let cmp = [
{
"type": 1, "components": [
{ "type": 2, "style": 1, "label": "Button 1", "custom_id": "1" }, //this is your first button
{ "type": 2, "style": 4, "label": "Button 2", "custom_id": "2" } //this is your second button
]
}
]
interaction.reply("Pong!", { components: cmp, type: 4 })Action Rows
Last updated
Was this helpful?