Button Command
This command allows server administrators to create interactive button messages within their guild. Users can set up messages with buttons that members can click to perform specific actions, such as assigning roles or triggering events.
/button add
Section titled “/button add”This command allows users to add a button to an existing message. Users can specify the button label, style, URL, emoji, and whether the button should be disabled.
Use the command followed by the message ID, button label, and optional parameters.
| Parameter | Type | Description | Required | Choices |
|---|---|---|---|---|
| message | String | The ID of the message to add the button to. | Yes | N/A |
| label | String | The label of the button. | Yes | N/A |
| style | String | The style of the button. | No | Primary (Blue), Secondary (Grey), Success (Green), Danger (Red) |
| url | String | The URL the button should open. | No | N/A |
| emoji | String | The emoji to display on the button. | No | N/A |
| disabled | Boolean | Whether the button should be disabled. | No | N/A |
| id | String | The ID of the button. | No | N/A |
/button add message:123456789012345678 label:Click Me style:Primary- Adds a primary button labelled “Click Me” to the specified message./button add message:123456789012345678 label:Visit Website style:Link url:https://example.com- Adds a link button labelled “Visit Website” that opens the specified URL.
- Users need the “Manage Webhooks” permission to use this command.