copyWith method

BotCommand copyWith({
  1. String? command,
  2. String? description,
  3. bool? isEphemeral,
})

Implementation

BotCommand copyWith({
  String? command,
  String? description,
  bool? isEphemeral,
}) =>
    BotCommand(
      command: command ?? this.command,
      description: description ?? this.description,
      isEphemeral: isEphemeral ?? this.isEphemeral,
    );