ButtonBuilder constructor
ButtonBuilder(})
Creates instance of ButtonBuilder
Implementation
ButtonBuilder(
String label,
this.customId,
ComponentStyle style,
{bool disabled = false,
IEmoji? emoji
}) : super(label, style, disabled: disabled, emoji: emoji
) {
if (this.label.length > 100) {
throw ArgumentError("customId for button cannot have more than 100 characters");
}
}