private async Task _deleteTaxonAsync(string name, TaxonRank rank) { // Ensure that the user has necessary privileges to use this command. if (!await BotUtils.ReplyHasPrivilegeAsync(Context, PrivilegeLevel.ServerModerator)) { return; } Taxon[] taxa = await TaxonUtils.GetTaxaAsync(name, rank); await _deleteTaxonAsync(taxa); }
public async Task DeleteTaxon(string name) { Taxon[] taxa = await TaxonUtils.GetTaxaAsync(name); await _deleteTaxonAsync(taxa); }