ButtonBuilder

export class ButtonBuilder extends BuilderButtonComponent
export class ButtonBuilder extends BuilderButtonComponent
Represents a button builder.
constructor(data?)
Constructs a new instance of the ButtonBuilder class
NameTypeOptionalDescription
dataPartial<ButtonComponentData> | Partial<APIButtonComponent>YesNone
Static
from(other):ButtonBuilder
Creates a new button builder from JSON data
NameTypeOptionalDescription
otherJSONEncodable<APIButtonComponent> | APIButtonComponentNoThe other data
setEmoji(emoji):this
Sets the emoji to display on this button
NameTypeOptionalDescription
emojiComponentEmojiResolvableNoThe emoji to display on this button