ButtonBuilder.fromButton constructor

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

Implementation

factory ButtonBuilder.fromButton({ required String customId, required ButtonStyle style, String? label, EmojiBuilder? emoji, bool disabled = false }) {
  return ButtonBuilder(customId, label, style, emoji, disabled, null);
}