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 ) |
Example
const Button = DiscordButtons.createButton({
label: "Button",
customId: "test_button_123"
});