export declare class ButtonBuilder extends ComponentBuilder<APIButtonComponent>
Represents a button component
Sets the custom id for this button
Name | Type | Optional | Description |
---|---|---|---|
customId | string | No | None |
Sets whether this button is disabled
Name | Type | Optional | Description |
---|---|---|---|
disabled | boolean | Yes | None |
Sets the emoji to display on this button
Name | Type | Optional | Description |
---|---|---|---|
emoji | APIMessageComponentEmoji | No | None |
Sets the label for this button
Name | Type | Optional | Description |
---|---|---|---|
label | string | No | None |
Sets the style of this button
Name | Type | Optional | Description |
---|---|---|---|
style | ButtonStyle | No | None |
Sets the URL for this button
Name | Type | Optional | Description |
---|---|---|---|
url | string | No | None |