Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public async Task DeleteTaxon(string name)
        {
            Taxon[] taxa = await TaxonUtils.GetTaxaAsync(name);

            await _deleteTaxonAsync(taxa);
        }