4.0.2 • Published 2 years ago
discord-button-helpers v4.0.2
Discord (.js) Button Helpers
Just a simple package that helps with Discord Buttons
createButton
OPTION | TYPE | REQUIRED | DEFAULT | DESCRIPTION | |||
---|---|---|---|---|---|---|---|
label | String | false | None | The label of the button. | |||
emoji | DiscordEmoji | false | None | The emoji of the button. | |||
disabled | Boolean | false | false | If the button should be disabled/unusable. | |||
customId | String | true | None | The developer set custom ID useful for handling the button responses. | |||
style | ButtonStyle (PRIMARY | SECONDARY | SUCCESS | DANGER ) | false | PRIMARY | The style/color for the button. |
Example
const Button = DiscordButtons.createButton({
label: "Button",
customId: "test_button_123"
});