Exemple #1
0
        public async Task SetServerGuildData(DeltaConnection conn, DbServer server, DbUser user, DbPlayerProfile profile)
        {
            //Get tribe info
            target_tribe = await conn.GetTribeByTribeIdAsync(server._id, profile.tribe_id);

            //Set other
            is_admin   = server.CheckIsUserAdmin(user);
            user_prefs = await server.GetUserPrefs(conn, user.id);
        }
Exemple #2
0
 public async Task <DbTribe> GetTribeAsync(DeltaConnection conn, int tribeId)
 {
     return(await conn.GetTribeByTribeIdAsync(_id, tribeId));
 }