Beispiel #1
0
        private string GetExamples(CommandInfo command)
        {
            var examples = command.FindAttribute <ExamplesAttribute>()?.Examples;

            if (examples is null || !examples.Any())
            {
                return(_lang.GetPhrase(PhraseKey.HELP_EXAMPLE_EMPTY.ToString()));
            }

            return(string.Join(", ", examples.Select(x => $"`{x}`")));
        }