Example #1
0
        public async Task ListMethodsAsync()
        {
            var rows = new List <string>()
            {
                "ID\tSkupina/Příkaz\tOnlyAdmins"
            };

            var rowsData = ConfigRepository.GetAllMethods(Context.Guild)
                           .Select(o => $"{o.ID}\t{o.Group}/{o.Command}\t{(o.OnlyAdmins ? 1 : 0)}");

            rows.AddRange(rowsData);

            await ReplyAsync($"```{string.Join("\n", rows)}```").ConfigureAwait(false);
        }