Optionaldisabled?: booleanTrạng thái disable
Optionalemoji?: stringEmoji hiển thị trên button
Nội dung hiển thị trên button
Link Button (chuyển hướng URL)
URL sẽ được mở khi click
Custom ID để xử lý interaction
Optionaldisabled?: booleanTrạng thái disable
Optionalemoji?: stringEmoji hiển thị trên button
Nội dung hiển thị trên button
Kiểu button tương tác
// Interactive button
const button: ButtonInput = {
style: "Primary",
customId: "confirm",
label: "Xác nhận"
};
// Link button
const linkButton: ButtonInput = {
style: "Link",
label: "Google",
url: "https://google.com"
};
Cấu hình đầu vào cho Button trong ComponentBuilder
Có 2 nhóm button:
1. Link Button (
style = "Link")urlcustomId2. Interactive Button
"Primary","Secondary","Success","Danger","Premium"customId⚠️ Lưu ý:
urlvừa cócustomIdlabeltối đa ~80 ký tựemojicó thể dùng unicode hoặc custom emoji