Пример #1
0
        public async Task ShowColors()
        {
            if (Xml.CommandAllowed("show colors", Context))
            {
                List <string> colorRoleNames = new List <string>();

                foreach (var role in Context.Guild.Roles)
                {
                    if (role.Name.Contains("Color: "))
                    {
                        colorRoleNames.Add(role.Name);
                    }
                }

                var embed = Embeds.ShowColors((IGuildChannel)Context.Channel, colorRoleNames, Context.Guild.Id);
                await Context.Channel.SendMessageAsync("", embed : embed).ConfigureAwait(false);
            }
        }