Exemplo n.º 1
0
        public async Task ViewGamerClans(string platform)
        {
            // find all the users with this platform
            List <UserAccount> accounts = UserAccounts.GetAccountsWithClan(platform);
            string             message  = "";

            foreach (UserAccount account in accounts)
            {
                message += $"{account.Mention}: {account.Clans[platform]}\n";
            }
            EmbedBuilder embed = new EmbedBuilder();

            embed.WithTitle(platform + " clans");
            embed.WithDescription(message);
            embed.WithColor(new Color(0, 100, 255));

            await Context.Channel.SendMessageAsync("", false, embed.Build());
        }