4.0.2 • Published 2 years ago

discord-button-helpers v4.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Discord (.js) Button Helpers

Just a simple package that helps with Discord Buttons

createButton

OPTIONTYPEREQUIREDDEFAULTDESCRIPTION
labelStringfalseNoneThe label of the button.
emojiDiscordEmojifalseNoneThe emoji of the button.
disabledBooleanfalsefalseIf the button should be disabled/unusable.
customIdStringtrueNoneThe developer set custom ID useful for handling the button responses.
styleButtonStyle (PRIMARYSECONDARYSUCCESSDANGER)falsePRIMARYThe style/color for the button.

Example

const Button = DiscordButtons.createButton({
    label: "Button",
    customId: "test_button_123"
});

createLinkButton

disableAllButtons

unDisableAllButtons