Builds a button.
ID of the component in its message, at most component.custom_id_max_chars characters.
component.custom_id_max_chars
Display text.
Value the interaction reports.
Style, icon and the shared members of ComponentOptions.
The generated ComponentCreate.
ComponentCreate
RangeError when a value breaks a rule of component.v1; the message names the field.
RangeError
component.v1
button("refund", "Refund", "yes", { style: "danger" }).definition;// { label: "Refund", style: "danger", value: "yes" } Copy
button("refund", "Refund", "yes", { style: "danger" }).definition;// { label: "Refund", style: "danger", value: "yes" }
Builds a button.