private static void AddUploadChannels(ServerUploadInfos Server) { SocketGuild Guild = Globals.Client.GetGuild(Server.Id); Server.JailCategories .ForEach(jail => Guild.GetChannelsOfCategory(jail) .ForEach(channel => Globals.JailChannels.Add(channel.Id))); Server.HellCategories .ForEach(hell => Guild.GetChannelsOfCategory(hell) .ForEach(channel => Globals.HellChannels.Add(channel.Id))); Server.CustomChannels .ForEach(custom => CheckCustomChannel(custom)); Server.ExcludedChannels .Where(ignore => Globals.JailChannels.Contains(ignore)) .ToList() .ForEach(ignore => Globals.JailChannels.Remove(ignore)); Server.ExcludedChannels .Where(ignore => Globals.HellChannels.Contains(ignore)) .ToList() .ForEach(ignore => Globals.HellChannels.Remove(ignore)); }