ButtonBuilder constructor

ButtonBuilder(
  1. String label,
  2. String customId,
  3. ButtonStyle style, {
  4. bool disabled = false,
  5. IEmoji? emoji,
})

Creates instance of ButtonBuilder

Implementation

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