builders

ButtonBuilder

export declare class ButtonBuilder extends ComponentBuilder<APIButtonComponent> 

Summary

Represents a button component

Methods

setCustomId(customId)

:

this

Sets the custom id for this button

NameTypeOptionalDescription
customIdstringNoNone

setDisabled(disabled)

:

this

Sets whether this button is disabled

NameTypeOptionalDescription
disabledbooleanYesNone

setEmoji(emoji)

:

this

Sets the emoji to display on this button

NameTypeOptionalDescription
emojiAPIMessageComponentEmojiNoNone

setLabel(label)

:

this

Sets the label for this button

NameTypeOptionalDescription
labelstringNoNone

setStyle(style)

:

this

Sets the style of this button

NameTypeOptionalDescription
styleButtonStyleNoNone

setURL(url)

:

this

Sets the URL for this button

NameTypeOptionalDescription
urlstringNoNone

builders