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); }
public async Task <DbTribe> GetTribeAsync(DeltaConnection conn, int tribeId) { return(await conn.GetTribeByTribeIdAsync(_id, tribeId)); }