generate method

  1. @override
CommandBuilder generate(
  1. Context context
)
override

Implementation

@override
CommandBuilder generate(Context context) {
  return CommandBuilder('random')
      .when(roll, then: 'roll', otherwise: 'value')
      .string(range.toString())
      .when(sequence != null, then: sequence);
}