예제 #1
0
        public async Task ViewGamerClans()
        {
            List <UserAccount> accounts = UserAccounts.GetAccountsWithClans();
            // find all the users with this platform
            string message = "";

            foreach (UserAccount account in accounts)
            {
                message += $"{account.Mention}:\n";
                foreach (var clan in account.Clans)
                {
                    message += $"{clan.Key}: {clan.Value}\n";
                }
            }
            EmbedBuilder embed = new EmbedBuilder();

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

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