setDescription method

SubCommandBuilder setDescription(
  1. String description, {
  2. Translation? translation,
})

Implementation

SubCommandBuilder setDescription(String description,
    {Translation? translation}) {
  _description = description;
  if (translation != null) {
    _descriptionLocalizations =
        _helper.extractTranslations('description', translation);
  }
  return this;
}